pub trait CanonicalDeserializeWithFlags: Sized {
// Required method
fn deserialize_with_flags<R: Read, F: Flags>(
reader: R,
) -> Result<(Self, F), SerializationError>;
}
Expand description
Deserializer in little endian format allowing flags to be encoded.
Required Methods§
Sourcefn deserialize_with_flags<R: Read, F: Flags>(
reader: R,
) -> Result<(Self, F), SerializationError>
fn deserialize_with_flags<R: Read, F: Flags>( reader: R, ) -> Result<(Self, F), SerializationError>
Reads Self
and Flags
from reader
.
Returns empty flags by default.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.