pub struct FromBytesDeserializer<T>(_, _, _)
where
    T: FromBytes
;

Implementations§

Deserializes a static-sized byte array (without length encoding).

This method fails if deserializer is given an insufficient size.

Deserializes a static-sized byte array, with a u8 length encoding at the start.

Deserializes a static-sized byte array, with a u16 length encoding at the start.

Deserializes a dynamically-sized byte array.

Attempts to deserialize a byte array (without length encoding).

This method does not fail if deserializer is given an insufficient size, however this method fails if FromBytes fails to read the value of T.

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.