Struct bee_ternary::t2b1::T2B1Buf [−][src]
pub struct T2B1Buf(_, _);
Expand description
An encoding scheme buffer that uses a single byte to represent two trits.
Trait Implementations
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 mutable slice.
Create a new buffer containing the given trits.
fn into_encoding<T: RawEncodingBuf>(this: TritBuf<Self>) -> TritBuf<T> where
Self: Sized,
T: RawEncodingBuf,
T::Slice: RawEncoding<Trit = <Self::Slice as RawEncoding>::Trit>,
fn into_encoding<T: RawEncodingBuf>(this: TritBuf<Self>) -> TritBuf<T> where
Self: Sized,
T: RawEncodingBuf,
T::Slice: RawEncoding<Trit = <Self::Slice as RawEncoding>::Trit>,
Convert this encoding into another encoding.
TODO: Rename this reencode
Read more
Auto Trait Implementations
impl RefUnwindSafe for T2B1Buf
impl UnwindSafe for T2B1Buf
Blanket Implementations
Mutably borrows from an owned value. Read more