Struct network_collections::Array40[][src]

pub struct Array40<T>(pub [T; 40]);

An array new type wrapper with $type elements.

Exists because Rust does not provide arrays with more than 32 elements which implement common traits.

Trait Implementations

impl<'deserialize, T: Deserialize<'deserialize>> Deserialize<'deserialize> for Array40<T>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<'deserialize> Deserialize<'deserialize> for Array40<u8>
[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T: Serialize> Serialize for Array40<T>
[src]

Serialize this value into the given Serde serializer. Read more

impl<T: Copy> Copy for Array40<T>
[src]

impl<T: Copy> Clone for Array40<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Array40<T>
[src]

Formats the value using the given formatter. Read more

impl<T: PartialEq> PartialEq for Array40<T>
[src]

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

This method tests for !=.

impl<T: Eq> Eq for Array40<T>
[src]

impl<T: PartialOrd> PartialOrd for Array40<T>
[src]

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

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

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

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

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

impl<T: Ord> Ord for Array40<T>
[src]

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl<T: Hash> Hash for Array40<T>
[src]

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

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

impl<'a, T> IntoIterator for &'a Array40<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for Iter<'a, T>

Creates an iterator from a value. Read more

impl<'a, T> IntoIterator for &'a mut Array40<T>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Important traits for IterMut<'a, T>

Creates an iterator from a value. Read more

impl<T> AsRef<[T]> for Array40<T>
[src]

Important traits for &'a [u8]

Performs the conversion.

impl<T> AsMut<[T]> for Array40<T>
[src]

Important traits for &'a [u8]

Performs the conversion.

impl<T> Deref for Array40<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T> DerefMut for Array40<T>
[src]

Mutably dereferences the value.

impl<T: Default + Copy> Default for Array40<T>
[src]

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

impl<T> From<[T; 40]> for Array40<T>
[src]

Performs the conversion.

impl<T> Into<[T; 40]> for Array40<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<T> Send for Array40<T> where
    T: Send

impl<T> Sync for Array40<T> where
    T: Sync