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

A sequence of bitencoded values.

Implementations

Create a new instance with a given encoding width (e.g. width=2 for using two bits per value).

Create a new instance with a given capacity and encoding width (e.g. width=2 for using two bits per value).

Append a value.

Append n times the given value.

Set the value as position i.

Get the value at position i.

Iterate over stored values (values will be unpacked into bytes).

Clear the sequence.

Trait Implementations

Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. 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.