pub trait DecoderWith<T>where
Self: Sized,{
type Err;
// Required method
fn decode_with(reader: &mut impl Read, init: T) -> Result<Self, Self::Err>;
}
Expand description
Decoding function with an initial state.
Required Associated Types§
Required Methods§
sourcefn decode_with(reader: &mut impl Read, init: T) -> Result<Self, Self::Err>
fn decode_with(reader: &mut impl Read, init: T) -> Result<Self, Self::Err>
Decoding from the reader
with the init
state.
Object Safety§
This trait is not object safe.