Struct ethcore_util::nibblevec::NibbleVec [] [src]

pub struct NibbleVec { /* fields omitted */ }

Owning, nibble-oriented byte vector. Counterpart to NibbleSlice.

Methods

impl NibbleVec
[src]

Make a new NibbleVec

Length of the NibbleVec

Retrurns true if NibbleVec has zero length

Try to get the nibble at the given offset.

Push a nibble onto the NibbleVec. Ignores the high 4 bits.

Try to pop a nibble off the NibbleVec. Fails if len == 0.

Try to treat this NibbleVec as a NibbleSlice. Works only if len is even.

Get the underlying byte slice.

Trait Implementations

impl Clone for NibbleVec
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NibbleVec
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NibbleVec
[src]

impl Debug for NibbleVec
[src]

Formats the value using the given formatter.

impl Default for NibbleVec
[src]

Returns the "default value" for a type. Read more

impl<'a> From<NibbleSlice<'a>> for NibbleVec
[src]

Performs the conversion.