Enum nibble::slice::NibSliceEven
[−]
[src]
pub enum NibSliceEven<'a> { Aligned(&'a NibSliceFull), Unaligned(&'a NibSliceNoBoth), }
Reference to a nibble slice with an even number of nibbles.
Variants
Aligned(&'a NibSliceFull)
An aligned slice with an even number of nibbles.
Unaligned(&'a NibSliceNoBoth)
An unaligned slice with an even number of nibbles.
Trait Implementations
impl<'a, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibSliceEven<'a>
[src]
fn eq(&self, rhs: &Rhs) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a, Rhs: ?Sized + NibSliceExt> PartialOrd<Rhs> for NibSliceEven<'a>
[src]
fn partial_cmp(&self, rhs: &Rhs) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<'a> Hash for NibSliceEven<'a>
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<'a> Eq for NibSliceEven<'a>
[src]
impl<'a> Ord for NibSliceEven<'a>
[src]
fn cmp(&self, rhs: &NibSliceEven<'a>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<'a> Binary for NibSliceEven<'a>
[src]
impl<'a> LowerHex for NibSliceEven<'a>
[src]
impl<'a> UpperHex for NibSliceEven<'a>
[src]
impl<'a> Debug for NibSliceEven<'a>
[src]
impl<'a> From<&'a NibSliceFull> for NibSliceEven<'a>
[src]
fn from(slice: &'a NibSliceFull) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a NibSliceNoBoth> for NibSliceEven<'a>
[src]
fn from(slice: &'a NibSliceNoBoth) -> Self
[src]
Performs the conversion.
impl<'a> NibSliceExt for NibSliceEven<'a>
[src]
fn nibble_pairs(&self) -> NibblePairs
[src]
Iterator over the nibble pairs in this slice. Read more
fn nibbles(&self) -> Nibbles
[src]
Iterator over nibbles in a slice.
fn decompose(&self) -> (Option<&u4lo>, &[u4x2], Option<&u4hi>)
[src]
Decomposes this slice into its parts.
fn get(&self, idx: usize) -> &u4
[src]
Gets a nibble at the given index.
fn len(&self) -> usize
[src]
Gets the length of the slice.
fn is_empty(&self) -> bool
[src]
Checks if the slice is empty.
fn into_generic(&self) -> NibSlice
[src]
Converts this slice into a NibSlice
.
fn is_aligned(&self) -> bool
[src]
Checks whether this slice is aligned to a byte boundary.
fn is_even(&self) -> bool
[src]
Checks whether this slice has an even number of nibbles.
fn is_odd(&self) -> bool
[src]
Checks whether this slice has an odd number of nibbles.