Struct spirt::spv::print::OperandPrinter
source · struct OperandPrinter<IMMS: Iterator<Item = Imm>, ID, IDS: Iterator<Item = ID>> {
imms: Peekable<IMMS>,
ids: Peekable<IDS>,
out: TokensForOperand<ID>,
}
Fields§
§imms: Peekable<IMMS>
Input immediate operands to print from (may be grouped e.g. into literals).
ids: Peekable<IDS>
Input ID operands to print from.
out: TokensForOperand<ID>
Output for the current operand (drained by the inst_operands
method).
Implementations§
source§impl<IMMS: Iterator<Item = Imm>, ID, IDS: Iterator<Item = ID>> OperandPrinter<IMMS, ID, IDS>
impl<IMMS: Iterator<Item = Imm>, ID, IDS: Iterator<Item = ID>> OperandPrinter<IMMS, ID, IDS>
fn is_exhausted(&mut self) -> bool
fn enumerant_params(&mut self, enumerant: &Enumerant)
fn literal(&mut self, kind: OperandKind, first_word: u32)
fn operand(&mut self, operand_name: &'static str, kind: OperandKind)
fn inst_operands( self, opcode: Opcode ) -> impl Iterator<Item = TokensForOperand<ID>>
Auto Trait Implementations§
impl<IMMS, ID, IDS> RefUnwindSafe for OperandPrinter<IMMS, ID, IDS>
impl<IMMS, ID, IDS> Send for OperandPrinter<IMMS, ID, IDS>
impl<IMMS, ID, IDS> Sync for OperandPrinter<IMMS, ID, IDS>
impl<IMMS, ID, IDS> Unpin for OperandPrinter<IMMS, ID, IDS>
impl<IMMS, ID, IDS> UnwindSafe for OperandPrinter<IMMS, ID, IDS>
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