Trait pod::code::Decode
[−]
[src]
pub trait Decode: Sized { type Options: Default; fn decode<R: Read>(r: &mut R) -> Result<Self> { ... } fn decode_options<R: Read>(r: &mut R, _options: Self::Options) -> Result<Self> { ... } }
Decodes data from a Read
into a new value.
See Encode
for more details.
Associated Types
type Options: Default
Options will affect how the value is decoded, and may be used to provide any data that is normally lost during encoding.
Provided Methods
fn decode<R: Read>(r: &mut R) -> Result<Self>
Decodes from the Read
with default options
fn decode_options<R: Read>(r: &mut R, _options: Self::Options) -> Result<Self>
Decodes from the Read
with the provided options