pub struct DecoderResult<V> {
pub value: V,
pub remainder: ByteVector,
}
Expand description
A result type, consisting of a decoded value and any unconsumed data, returned by decode
operations.
Fields§
§value: V
The decoded value.
remainder: ByteVector
The unconsumed data.
Trait Implementations§
Auto Trait Implementations§
impl<V> Freeze for DecoderResult<V>where
V: Freeze,
impl<V> !RefUnwindSafe for DecoderResult<V>
impl<V> !Send for DecoderResult<V>
impl<V> !Sync for DecoderResult<V>
impl<V> Unpin for DecoderResult<V>where
V: Unpin,
impl<V> !UnwindSafe for DecoderResult<V>
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