Enum nibble::array::NibArray
[−]
[src]
pub enum NibArray<A: Array<Item = u4x2>> { Even(NibArrayEven<A>), Odd(NibArrayOdd<A>), }
An array of nibbles.
Variants
Even(NibArrayEven<A>)
Odd(NibArrayOdd<A>)
Methods
impl<A: Array<Item = u4x2>> NibArray<A>
[src]
fn as_slice(&self) -> NibSliceAligned
[src]
Intreprets this array as a slice.
fn as_mut_slice(&mut self) -> NibSliceAlignedMut
[src]
Intreprets this array as a mutable slice.
Trait Implementations
impl<A: Array<Item = u4x2>, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibArray<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: Array<Item = u4x2>, Rhs: ?Sized + NibSliceExt> PartialOrd<Rhs> for NibArray<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: Array<Item = u4x2>> Hash for NibArray<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: Array<Item = u4x2>> Eq for NibArray<A>
[src]
impl<A: Array<Item = u4x2>> Ord for NibArray<A>
[src]
fn cmp(&self, rhs: &NibArray<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: Array<Item = u4x2>> Binary for NibArray<A>
[src]
impl<A: Array<Item = u4x2>> LowerHex for NibArray<A>
[src]
impl<A: Array<Item = u4x2>> UpperHex for NibArray<A>
[src]
impl<A: Array<Item = u4x2>> Debug for NibArray<A>
[src]
impl<A: Array<Item = u4x2>> NibSliceExt for NibArray<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.
impl<A: Array<Item = u4x2>> NibSliceMutExt for NibArray<A>
[src]
fn nibble_pairs_mut(&mut self) -> NibblePairsMut
[src]
Mutable iterator over the nibble pairs in this slice. Read more
fn nibbles_mut(&mut self) -> NibblesMut
[src]
Mutable iterator over nibbles in a slice.
fn decompose_mut(
&mut self
) -> (Option<&U4LoCell>, &mut [u4x2], Option<&U4HiCell>)
[src]
&mut self
) -> (Option<&U4LoCell>, &mut [u4x2], Option<&U4HiCell>)
Mutably decomposes this slice into its parts.
fn get_mut(&mut self, idx: usize) -> &U4Cell
[src]
Mutably gets a nibble at the given index.
fn into_generic_mut(&mut self) -> NibSliceMut
[src]
Converts this slice into a NibSliceMut
.