Trait nibble::slice::NibSliceExt [] [src]

pub trait NibSliceExt: Sealed {
    fn nibble_pairs(&self) -> NibblePairs { ... }
fn nibbles(&self) -> Nibbles { ... }
fn decompose(&self) -> (Option<&u4lo>, &[u4x2], Option<&u4hi>) { ... }
fn get(&self, idx: usize) -> &u4 { ... }
fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... }
fn into_generic(&self) -> NibSlice { ... }
fn is_aligned(&self) -> bool { ... }
fn is_even(&self) -> bool { ... }
fn is_odd(&self) -> bool { ... } }

A slice of nibbles.

Provided Methods

Iterator over the nibble pairs in this slice.

This may include nibbles that are omitted.

Iterator over nibbles in a slice.

Decomposes this slice into its parts.

Gets a nibble at the given index.

Gets the length of the slice.

Checks if the slice is empty.

Converts this slice into a NibSlice.

Checks whether this slice is aligned to a byte boundary.

Checks whether this slice has an even number of nibbles.

Checks whether this slice has an odd number of nibbles.

Implementors