Enum nibble::slice::NibSliceMut
[−]
[src]
pub enum NibSliceMut<'a> { Full(&'a mut NibSliceFull), NoL(&'a mut NibSliceNoL), NoR(&'a mut NibSliceNoR), NoBoth(&'a mut NibSliceNoBoth), }
Mutable reference to a nibble slice.
Variants
Full(&'a mut NibSliceFull)
A slice with both sides.
NoL(&'a mut NibSliceNoL)
A slice without the left side.
NoR(&'a mut NibSliceNoR)
A slice without the right side.
NoBoth(&'a mut NibSliceNoBoth)
A slice without both sides.
Methods
impl<'a> NibSliceMut<'a>
[src]
fn into_aligned(self) -> Option<NibSliceAlignedMut<'a>>
[src]
Converts this slice into an aligned version.
fn into_unaligned(self) -> Option<NibSliceUnalignedMut<'a>>
[src]
Converts this slice into an unaligned version.
fn into_even(self) -> Option<NibSliceEvenMut<'a>>
[src]
Converts this slice into an even version.
fn into_odd(self) -> Option<NibSliceOddMut<'a>>
[src]
Converts this slice into an odd version.
Trait Implementations
impl<'a, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibSliceMut<'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 NibSliceMut<'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 NibSliceMut<'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 NibSliceMut<'a>
[src]
impl<'a> Ord for NibSliceMut<'a>
[src]
fn cmp(&self, rhs: &NibSliceMut<'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 NibSliceMut<'a>
[src]
impl<'a> LowerHex for NibSliceMut<'a>
[src]
impl<'a> UpperHex for NibSliceMut<'a>
[src]
impl<'a> Debug for NibSliceMut<'a>
[src]
impl<'a> From<&'a mut NibSliceFull> for NibSliceMut<'a>
[src]
fn from(slice: &'a mut NibSliceFull) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut NibSliceNoL> for NibSliceMut<'a>
[src]
fn from(slice: &'a mut NibSliceNoL) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut NibSliceNoR> for NibSliceMut<'a>
[src]
fn from(slice: &'a mut NibSliceNoR) -> Self
[src]
Performs the conversion.
impl<'a> From<&'a mut NibSliceNoBoth> for NibSliceMut<'a>
[src]
fn from(slice: &'a mut NibSliceNoBoth) -> Self
[src]
Performs the conversion.
impl<'a> From<NibSliceAlignedMut<'a>> for NibSliceMut<'a>
[src]
fn from(slice: NibSliceAlignedMut<'a>) -> Self
[src]
Performs the conversion.
impl<'a> From<NibSliceUnalignedMut<'a>> for NibSliceMut<'a>
[src]
fn from(slice: NibSliceUnalignedMut<'a>) -> Self
[src]
Performs the conversion.
impl<'a> From<NibSliceEvenMut<'a>> for NibSliceMut<'a>
[src]
fn from(slice: NibSliceEvenMut<'a>) -> Self
[src]
Performs the conversion.
impl<'a> From<NibSliceOddMut<'a>> for NibSliceMut<'a>
[src]
fn from(slice: NibSliceOddMut<'a>) -> Self
[src]
Performs the conversion.
impl<'a> NibSliceExt for NibSliceMut<'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> NibSliceMutExt for NibSliceMut<'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
.