pub struct Decoder<'a> { /* private fields */ }Expand description
WAVE instruction decoder
Implementations§
Source§impl<'a> Decoder<'a>
impl<'a> Decoder<'a>
Sourcepub fn decode_next(&mut self) -> Result<DecodedInstruction, DecodeError>
pub fn decode_next(&mut self) -> Result<DecodedInstruction, DecodeError>
Decode the next instruction
§Errors
Returns DecodeError::UnexpectedEnd if there are fewer than 4 bytes remaining.
Returns DecodeError::InvalidOpcode if the opcode byte is not recognized.
Returns DecodeError::InvalidModifier if the modifier is invalid for the opcode.
Auto Trait Implementations§
impl<'a> Freeze for Decoder<'a>
impl<'a> RefUnwindSafe for Decoder<'a>
impl<'a> Send for Decoder<'a>
impl<'a> Sync for Decoder<'a>
impl<'a> Unpin for Decoder<'a>
impl<'a> UnsafeUnpin for Decoder<'a>
impl<'a> UnwindSafe for Decoder<'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