pub struct DecoderContext { /* private fields */ }Expand description
HID Decoder state.
Implementations§
Source§impl DecoderContext
impl DecoderContext
Sourcepub fn decode_one<Iter>(
&mut self,
iter: &mut Iter,
) -> Result<Option<Item>, LengthError>
pub fn decode_one<Iter>( &mut self, iter: &mut Iter, ) -> Result<Option<Item>, LengthError>
Decode one item from its encoded bytes.
This will consume a variable number of bytes from the input iterator.
Trait Implementations§
Source§impl Default for DecoderContext
impl Default for DecoderContext
Source§fn default() -> DecoderContext
fn default() -> DecoderContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecoderContext
impl RefUnwindSafe for DecoderContext
impl Send for DecoderContext
impl Sync for DecoderContext
impl Unpin for DecoderContext
impl UnsafeUnpin for DecoderContext
impl UnwindSafe for DecoderContext
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