Struct varu64::nb::LengthValueEncoder[][src]

pub struct LengthValueEncoder<T>(_, _);
Expand description

State for encoding some bytes, preceded by a VarU64 indicating their length

Implementations

Create an encoder for encoding the given bytes.

Encode (potentially only parts of) the bytes into the output buffer. This returns how many bytes were written. If it returns zero even though the out buffer had non-zero length, the encoding process is done.

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.