Enum nibble::slice::NibSlice [] [src]

pub enum NibSlice<'a> {
    Full(&'a NibSliceFull),
    NoL(&'a NibSliceNoL),
    NoR(&'a NibSliceNoR),
    NoBoth(&'a NibSliceNoBoth),
}

Reference to a nibble slice.

Variants

A slice with both sides.

A slice without the left side.

A slice without the right side.

A slice without both sides.

Methods

impl<'a> NibSlice<'a>
[src]

[src]

Converts this slice into an aligned version.

[src]

Converts this slice into an unaligned version.

[src]

Converts this slice into an even version.

[src]

Converts this slice into an odd version.

Trait Implementations

impl<'a, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibSlice<'a>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'a, Rhs: ?Sized + NibSliceExt> PartialOrd<Rhs> for NibSlice<'a>
[src]

[src]

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

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

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 NibSlice<'a>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a> Eq for NibSlice<'a>
[src]

impl<'a> Ord for NibSlice<'a>
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl<'a> Binary for NibSlice<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> LowerHex for NibSlice<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> UpperHex for NibSlice<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> Debug for NibSlice<'a>
[src]

[src]

Formats the value using the given formatter.

impl<'a> From<&'a NibSliceFull> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<&'a NibSliceNoL> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<&'a NibSliceNoR> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<&'a NibSliceNoBoth> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<NibSliceAligned<'a>> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<NibSliceUnaligned<'a>> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<NibSliceEven<'a>> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> From<NibSliceOdd<'a>> for NibSlice<'a>
[src]

[src]

Performs the conversion.

impl<'a> NibSliceExt for NibSlice<'a>
[src]

[src]

Iterator over the nibble pairs in this slice. Read more

[src]

Iterator over nibbles in a slice.

[src]

Decomposes this slice into its parts.

[src]

Gets a nibble at the given index.

[src]

Gets the length of the slice.

[src]

Checks if the slice is empty.

[src]

Converts this slice into a NibSlice.

[src]

Checks whether this slice is aligned to a byte boundary.

[src]

Checks whether this slice has an even number of nibbles.

[src]

Checks whether this slice has an odd number of nibbles.