NibSliceNoL

Struct NibSliceNoL 

Source
pub struct NibSliceNoL { /* private fields */ }
Expand description

Nibble slice which is missing the leftmost, high-order nibble.

Trait Implementations§

Source§

impl Binary for NibSliceNoL

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Debug for NibSliceNoL

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> From<&'a NibSliceNoL> for NibSlice<'a>

Source§

fn from(slice: &'a NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NibSliceNoL> for NibSliceOdd<'a>

Source§

fn from(slice: &'a NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NibSliceNoL> for NibSliceUnaligned<'a>

Source§

fn from(slice: &'a NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NibSliceNoL> for NibSliceMut<'a>

Source§

fn from(slice: &'a mut NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NibSliceNoL> for NibSliceOddMut<'a>

Source§

fn from(slice: &'a mut NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a mut NibSliceNoL> for NibSliceUnalignedMut<'a>

Source§

fn from(slice: &'a mut NibSliceNoL) -> Self

Converts to this type from the input type.
Source§

impl<'unused> Hash for NibSliceNoL

Source§

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
Source§

impl LowerHex for NibSliceNoL

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl NibSliceExt for NibSliceNoL

Source§

fn nibble_pairs(&self) -> NibblePairs<'_>

Iterator over the nibble pairs in this slice. Read more
Source§

fn nibbles(&self) -> Nibbles<'_>

Iterator over nibbles in a slice.
Source§

fn decompose(&self) -> (Option<&u4lo>, &[u4x2], Option<&u4hi>)

Decomposes this slice into its parts.
Source§

fn get(&self, idx: usize) -> &dyn u4

Gets a nibble at the given index.
Source§

fn len(&self) -> usize

Gets the length of the slice.
Source§

fn is_empty(&self) -> bool

Checks if the slice is empty.
Source§

fn into_generic(&self) -> NibSlice<'_>

Converts this slice into a NibSlice.
Source§

fn is_aligned(&self) -> bool

Checks whether this slice is aligned to a byte boundary.
Source§

fn is_even(&self) -> bool

Checks whether this slice has an even number of nibbles.
Source§

fn is_odd(&self) -> bool

Checks whether this slice has an odd number of nibbles.
Source§

impl NibSliceMutExt for NibSliceNoL

Source§

fn nibble_pairs_mut(&mut self) -> NibblePairsMut<'_>

Mutable iterator over the nibble pairs in this slice. Read more
Source§

fn nibbles_mut(&mut self) -> NibblesMut<'_>

Mutable iterator over nibbles in a slice.
Source§

fn decompose_mut( &mut self, ) -> (Option<&U4LoCell>, &mut [u4x2], Option<&U4HiCell>)

Mutably decomposes this slice into its parts.
Source§

fn get_mut(&mut self, idx: usize) -> &dyn U4Cell

Mutably gets a nibble at the given index.
Source§

fn into_generic_mut(&mut self) -> NibSliceMut<'_>

Converts this slice into a NibSliceMut.
Source§

impl<'unused> Ord for NibSliceNoL

Source§

fn cmp(&self, rhs: &NibSliceNoL) -> Ordering

This method returns an Ordering between self and other. Read more
Source§

impl<'unused, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibSliceNoL

Source§

fn eq(&self, rhs: &Rhs) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<'unused, Rhs: ?Sized + NibSliceExt> PartialOrd<Rhs> for NibSliceNoL

Source§

fn partial_cmp(&self, rhs: &Rhs) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl UpperHex for NibSliceNoL

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'unused> Eq for NibSliceNoL

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more