Struct bincode::de::DecoderImpl[][src]

pub struct DecoderImpl<R, C: Config> { /* fields omitted */ }
Expand description

A Decoder that reads bytes from a given reader R.

This struct should rarely be used. In most cases, prefer any of the decode functions.

The ByteOrder that is chosen will impact the endianness that is used to read integers out of the reader.

use bincode::de::{DecoderImpl, Decode};
use bincode::config;
let mut decoder = DecoderImpl::new(some_reader, config::Configuration::standard());
// this u32 can be any Decode
let value = u32::decode(&mut decoder).unwrap();

Implementations

Construct a new Decoder

Trait Implementations

The concrete BorrowReader type

Rerturns a mutable reference to the borrow reader

The concrete Reader type

The concrete Config type

Returns a mutable reference to the reader

Returns a mutable reference to the config

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.