Struct bee_ternary::tryte::TryteBuf[][src]

pub struct TryteBuf { /* fields omitted */ }
Expand description

A buffer of Trytes. Analagous to Vec.

Implementations

Create a new empty buffer.

Create a new empty buffer with room for cap trytes.

Attempt to parse a string into a tryte buffer.

Returns true if the buffer is empty.

Returns the number of trytes in the buffer.

Push a new tryte to the end of the buffer.

Attempt to pop a tryte from the end of the buffer.

Safely interpret this tryte buffer as a T3B1 trit slice.

Safely interpret this tryte buffer as a mutable T3B1 trit slice.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Formats the value using the given formatter. Read more

Performs the conversion.

Creates a value from an iterator. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. 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

Performs the conversion.

Performs the conversion.

Converts the given value to a String. 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.