Struct nibble::array::NibArrayVec [] [src]

pub struct NibArrayVec<A: Array<Item = u4x2>> { /* fields omitted */ }

An ArrayVec of nibbles.

Methods

impl<A: Array<Item = u4x2>> NibArrayVec<A>
[src]

[src]

Converts an ASCII hex string into a nibble vector.

[src]

Converts a hex string into a nibble vector.

impl<A: Array<Item = u4x2>> NibArrayVec<A>
[src]

[src]

Creates an empty NibArrayVec.

[src]

Number of nibbles in the vector.

[src]

Whether the vector is empty.

[src]

How many nibbles can be stored in the vector.

[src]

Whether the vector is full.

[src]

Pushes a nibble onto the vector.

Panics

Panics if the vector is full.

[src]

Pushes a nibble onto the vector if possible.

[src]

Pushes a nibble onto the vector without checking if it's full.

[src]

Inserts a nibble into the vector at the given index.

[src]

Inserts a nibble into the vector at the given index.

[src]

Removes a nibble from the vector at the given index.

[src]

Removes a nibble from the vector at the given index, converting it to a high-order nibble.

[src]

Removes a nibble from the vector, converting it to a high-order nibble.

[src]

Clears the vector, removing all nibbles.

[src]

Disposes of the vector.

[src]

Converts the vector into an odd array, if it's full to one less than capacity.

[src]

Converts the vector into an even array, if it's full to capacity.

[src]

Intreprets this array as a slice.

[src]

Intreprets this array as a mutable slice.

Trait Implementations

impl<A: Array<Item = u4x2>, Rhs: ?Sized + NibSliceExt> PartialEq<Rhs> for NibArrayVec<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: Array<Item = u4x2>, Rhs: ?Sized + NibSliceExt> PartialOrd<Rhs> for NibArrayVec<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: Array<Item = u4x2>> Hash for NibArrayVec<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: Array<Item = u4x2>> Eq for NibArrayVec<A>
[src]

impl<A: Array<Item = u4x2>> Ord for NibArrayVec<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: Array<Item = u4x2>> Binary for NibArrayVec<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Array<Item = u4x2>> LowerHex for NibArrayVec<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Array<Item = u4x2>> UpperHex for NibArrayVec<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Array<Item = u4x2>> Debug for NibArrayVec<A>
[src]

[src]

Formats the value using the given formatter.

impl<A: Array<Item = u4x2>> FromStr for NibArrayVec<A>
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl<A: Clone + Array<Item = u4x2>> Clone for NibArrayVec<A>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<A: Array<Item = u4x2>> Default for NibArrayVec<A>
[src]

[src]

Returns the "default value" for a type. Read more

impl<A: Array<Item = u4x2>, T: u4> FromIterator<T> for NibArrayVec<A>
[src]

[src]

Creates a value from an iterator. Read more

impl<'a, A: Array<Item = u4x2>> FromIterator<&'a u4> for NibArrayVec<A>
[src]

[src]

Creates a value from an iterator. Read more

impl<A: Array<Item = u4x2>> FromIterator<u4x2> for NibArrayVec<A>
[src]

[src]

Creates a value from an iterator. Read more

impl<A: Array<Item = u4x2>, T: u4> Extend<T> for NibArrayVec<A>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<'a, A: Array<Item = u4x2>> Extend<&'a u4> for NibArrayVec<A>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<A: Array<Item = u4x2>> Extend<u4x2> for NibArrayVec<A>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl<A: Array<Item = u4x2>> NibSliceExt for NibArrayVec<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.

impl<A: Array<Item = u4x2>> NibSliceMutExt for NibArrayVec<A>
[src]

[src]

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

[src]

Mutable iterator over nibbles in a slice.

[src]

Mutably decomposes this slice into its parts.

[src]

Mutably gets a nibble at the given index.

[src]

Converts this slice into a NibSliceMut.