Struct spirt::spv::write::OperandEmitter
source · struct OperandEmitter<'a> {
imms: Copied<Iter<'a, Imm>>,
ids: Copied<Iter<'a, Id>>,
out: &'a mut Vec<u32>,
}
Fields§
§imms: Copied<Iter<'a, Imm>>
Input immediate operands of an instruction.
ids: Copied<Iter<'a, Id>>
Input ID operands of an instruction.
out: &'a mut Vec<u32>
Output SPIR-V words.
Implementations§
source§impl OperandEmitter<'_>
impl OperandEmitter<'_>
fn is_exhausted(&mut self) -> bool
fn enumerant_params( &mut self, enumerant: &Enumerant ) -> Result<(), OperandEmitError>
fn operand(&mut self, kind: OperandKind) -> Result<(), OperandEmitError>
fn inst_operands(self, def: &InstructionDef) -> Result<(), OperandEmitError>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OperandEmitter<'a>
impl<'a> Send for OperandEmitter<'a>
impl<'a> Sync for OperandEmitter<'a>
impl<'a> Unpin for OperandEmitter<'a>
impl<'a> !UnwindSafe for OperandEmitter<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more