pub struct WithOtherTrailing<O: Options, T: TrailingBytes> { /* private fields */ }
Expand description

A configuration struct with a user-specified trailing bytes behavior.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. 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.

Sets the byte limit to be unlimited. This is the default. Read more
Sets the byte limit to limit.
Sets the endianness to little-endian This is the default. Read more
Sets the endianness to big-endian
Sets the endianness to the the machine-native endianness
Sets the length encoding to varint
Sets the length encoding to be fixed
Sets the deserializer to reject trailing bytes
Sets the deserializer to allow trailing bytes
Serializes a serializable object into a Vec of bytes using this configuration
Returns the size that an object would be if serialized using Bincode with this configuration
Serializes an object directly into a Writer using this configuration Read more
Deserializes a slice of bytes into an instance of T using this configuration
Deserializes a slice of bytes with state seed using this configuration.
Deserializes an object directly from a Reader using this configuration Read more
Deserializes an object directly from a Reader with state seed using this configuration Read more
Deserializes an object from a custom BincodeReader using the default configuration. It is highly recommended to use deserialize_from unless you need to implement BincodeRead for performance reasons. Read more
Deserializes an object from a custom BincodeReader with state seed using the default configuration. It is highly recommended to use deserialize_from unless you need to implement BincodeRead for performance reasons. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.