pub struct Constructed<V> { /* private fields */ }
Expand description

A value encoder for a single constructed value.

Implementations

Creates a new constructed value encoder from a tag and content.

The returned value will encode as a single constructed value with the given tag and whatever inner encodeds to as its content.

Trait Implementations

Returns the length of the encoded values for the given mode.

Encodes the values in the given mode and writes them to target.

Converts the encoder into one with an explicit tag.

Captures the encoded values in the given mode.

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.