Struct bee_ternary::t1b1::T1B1Buf [−][src]
Expand description
An encoding scheme buffer that uses a single byte to represent one trit.
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<T> RefUnwindSafe for T1B1Buf<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for T1B1Buf<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more