#[repr(transparent)]
pub struct T1B1<T: Trit = Btrit> { /* private fields */ }
Expand description

An encoding scheme slice that uses a single byte to represent one trit.

Trait Implementations

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

The type of trit associated with this trit encoding.

The trit buffer encoding associated with this trit slice encoding.

The number of trits that fit into this trit slice encoding.

Get an empty slice of this encoding

Get the number of trits in this buffer

Interpret the raw data of this encoding as a slice of i8.

Interpret the raw data of this encoding as a mutable slice of i8.

Get the trit at the given index

Set the trit at the given index

Get a slice of this slice

Get a mutable slice of this slice

Decide whether a byte is a valid series of trits in this encoding

Unsafely reinterpret a slice of bytes as trit slice

Unsafely reinterpret a slice of bytes as trit slice

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.