pub struct Deserializer { /* private fields */ }
Expand description

Deserializer for all supported formats.

Since the serialization formats all include some magic bytes that allow reliable identification of the different formats, only one Deserializer implementation is needed.

Implementations§

Create a new deserializer.

Deserialize an encoded histogram from the provided reader.

Note that &[u8] and Cursor are convenient implementations of Read if you have some bytes already in slice or Vec form.

Trait Implementations§

Returns the “default value” for a type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.