Struct spirt::spv::read::InstParser
source · struct InstParser<'a> {
known_ids: &'a FxHashMap<Id, KnownIdDef>,
words: Copied<Iter<'a, u32>>,
inst: InstWithIds,
}
Fields§
§known_ids: &'a FxHashMap<Id, KnownIdDef>
IDs defined so far in the module.
words: Copied<Iter<'a, u32>>
Input words of an instruction.
inst: InstWithIds
Output instruction, being parsed.
Implementations§
source§impl InstParser<'_>
impl InstParser<'_>
fn is_exhausted(&self) -> bool
fn enumerant_params( &mut self, enumerant: &Enumerant ) -> Result<(), InstParseError>
fn operand(&mut self, kind: OperandKind) -> Result<(), InstParseError>
fn inst(self, def: &InstructionDef) -> Result<InstWithIds, InstParseError>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for InstParser<'a>
impl<'a> Send for InstParser<'a>
impl<'a> Sync for InstParser<'a>
impl<'a> Unpin for InstParser<'a>
impl<'a> UnwindSafe for InstParser<'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