Struct tbon::de::Decoder[][src]

pub struct Decoder<R> { /* fields omitted */ }
Expand description

A structure that decodes Rust values from a TBON stream.

Implementations

Trait Implementations

Type to return in case of a decoding error.

Require the Decoder to figure out how to drive the visitor based on what data type is in the input. Read more

Hint that the FromStream type is expecting a bool value.

Hint that the FromStream type is expecting an i8 value.

Hint that the FromStream type is expecting an i16 value.

Hint that the FromStream type is expecting an i32 value.

Hint that the FromStream type is expecting an i64 value.

Hint that the FromStream type is expecting a u8 value.

Hint that the FromStream type is expecting a u16 value.

Hint that the FromStream type is expecting a u32 value.

Hint that the FromStream type is expecting a u64 value.

Hint that the FromStream type is expecting a f32 value.

Hint that the FromStream type is expecting a f64 value.

Hint that the FromStream type is expecting an array of bools.

Hint that the FromStream type is expecting an array of i8s.

Hint that the FromStream type is expecting an array of i16s.

Hint that the FromStream type is expecting an array of i32s.

Hint that the FromStream type is expecting an array of i64s.

Hint that the FromStream type is expecting an array of u8s.

Hint that the FromStream type is expecting an array of u16s.

Hint that the FromStream type is expecting an array of u32s.

Hint that the FromStream type is expecting an array of u64s.

Hint that the FromStream type is expecting an array of f32s.

Hint that the FromStream type is expecting an array of f64s.

Hint that the FromStream type is expecting a string value.

Hint that the FromStream type is expecting a byte array.

Hint that the FromStream type is expecting an optional value. Read more

Hint that the FromStream type is expecting a sequence of values.

Hint that the FromStream type is expecting a unit value (i.e. ()).

Hint that the FromStream type is expecting a sequence of values and knows how many values there are without looking at the encoded data. Read more

Hint that the FromStream type is expecting a map of key-value pairs.

Hint that the FromStream type needs to decode a value whose type doesn’t matter because it is ignored. Read more

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.