Struct trie_db::NibbleVec [−][src]
pub struct NibbleVec { /* fields omitted */ }Expand description
Owning, nibble-oriented byte vector. Counterpart to NibbleSlice.
Nibbles are always left aligned, so making a NibbleVec from
a NibbleSlice can get costy.
Implementations
Remove then n last nibbles in a faster way than popping n times.
Append another NibbleVec. Can be slow (alignement of second vec).
Append a Partial. Can be slow (alignement of partial).
Get the underlying byte slice.
Try to treat this NibbleVec as a NibbleSlice. Works only if there is no padding.
Do we start with the same nibbles as the whole of them?
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for NibbleVecimpl UnwindSafe for NibbleVecBlanket Implementations
Mutably borrows from an owned value. Read more