pub struct T3B1Buf(_, _);
Expand description

An encoding scheme buffer that uses a single byte to represent three trits.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The trit slice encoding associated with this trit buffer encoding.

Create a new empty buffer.

Create a new empty buffer with a given capacity.

Clears the buffer, removing all values. Note that this method has no effect on the allocated capacity of the buffer. Read more

Push a trit to the back of this buffer.

Pop a trit from the back of this buffer.

View the trits in this buffer as a slice.

View the trits in this buffer as a mutable slice.

Returns the number of trits the buffer can hold.

Create a new buffer containing the given trits.

Convert this encoding into another encoding. TODO: Rename this reencode 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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.