Struct generic_arrayvec::typenum::array::TArr [−]
pub struct TArr<V, A> { /* fields omitted */ }TArr is a type that acts as an array of types. It is defined similarly to UInt, only its
values can be more than bits, and it is designed to act as an array. So you can only add two if
they have the same number of elements, for example.
This array is only really designed to contain Integer types. If you use it with others, you
may find it lacking functionality.
Trait Implementations
impl<V, A> Hash for TArr<V, A> where
A: Hash,
V: Hash,
impl<V, A> Hash for TArr<V, A> where
A: Hash,
V: Hash, fn hash<__HVA>(&self, state: &mut __HVA) where
__HVA: Hasher,
fn hash<__HVA>(&self, state: &mut __HVA) where
__HVA: Hasher, 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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
A: PartialOrd<A>,
V: PartialOrd<V>,
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
A: PartialOrd<A>,
V: PartialOrd<V>, fn partial_cmp(&self, other: &TArr<V, A>) -> Option<Ordering>
fn partial_cmp(&self, other: &TArr<V, A>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &TArr<V, A>) -> bool
fn lt(&self, other: &TArr<V, A>) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &TArr<V, A>) -> bool
fn le(&self, other: &TArr<V, A>) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &TArr<V, A>) -> bool
fn gt(&self, other: &TArr<V, A>) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &TArr<V, A>) -> bool
fn ge(&self, other: &TArr<V, A>) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<V, A> TypeArray for TArr<V, A>
impl<V, A> TypeArray for TArr<V, A>impl<V, A, Rhs> Div<Rhs> for TArr<V, A> where
A: Div<Rhs>,
V: Div<Rhs>,
impl<V, A, Rhs> Div<Rhs> for TArr<V, A> where
A: Div<Rhs>,
V: Div<Rhs>, type Output = TArr<<V as Div<Rhs>>::Output, <A as Div<Rhs>>::Output>
The resulting type after applying the / operator.
fn div(self, Rhs) -> <TArr<V, A> as Div<Rhs>>::Output
fn div(self, Rhs) -> <TArr<V, A> as Div<Rhs>>::OutputPerforms the / operation.
impl<V, A, Rhs> Rem<Rhs> for TArr<V, A> where
A: Rem<Rhs>,
V: Rem<Rhs>,
impl<V, A, Rhs> Rem<Rhs> for TArr<V, A> where
A: Rem<Rhs>,
V: Rem<Rhs>, type Output = TArr<<V as Rem<Rhs>>::Output, <A as Rem<Rhs>>::Output>
The resulting type after applying the % operator.
fn rem(self, Rhs) -> <TArr<V, A> as Rem<Rhs>>::Output
fn rem(self, Rhs) -> <TArr<V, A> as Rem<Rhs>>::OutputPerforms the % operation.
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>,
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A> where
A: PartialDiv<Rhs>,
V: PartialDiv<Rhs>, type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>
The type of the result of the division
fn partial_div(self, Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::Output
fn partial_div(self, Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::OutputMethod for performing the division
impl<V, A> Len for TArr<V, A> where
A: Len,
<A as Len>::Output: Add<B1>,
<<A as Len>::Output as Add<B1>>::Output: Unsigned,
impl<V, A> Len for TArr<V, A> where
A: Len,
<A as Len>::Output: Add<B1>,
<<A as Len>::Output as Add<B1>>::Output: Unsigned, Size of a TypeArray
type Output = <<A as Len>::Output as Add<B1>>::Output
The length as a type-level unsigned integer.
fn len(&self) -> <TArr<V, A> as Len>::Output
fn len(&self) -> <TArr<V, A> as Len>::OutputThis function isn't used in this crate, but may be useful for others.
impl<V, A> Ord for TArr<V, A> where
A: Ord,
V: Ord,
impl<V, A> Ord for TArr<V, A> where
A: Ord,
V: Ord, fn cmp(&self, other: &TArr<V, A>) -> Ordering
fn cmp(&self, other: &TArr<V, A>) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl<V, A, Rhs> Mul<Rhs> for TArr<V, A> where
A: Mul<Rhs>,
V: Mul<Rhs>,
impl<V, A, Rhs> Mul<Rhs> for TArr<V, A> where
A: Mul<Rhs>,
V: Mul<Rhs>, type Output = TArr<<V as Mul<Rhs>>::Output, <A as Mul<Rhs>>::Output>
The resulting type after applying the * operator.
fn mul(self, Rhs) -> <TArr<V, A> as Mul<Rhs>>::Output
fn mul(self, Rhs) -> <TArr<V, A> as Mul<Rhs>>::OutputPerforms the * operation.
impl<V, A, U> Mul<TArr<V, A>> for NInt<U> where
U: Unsigned + NonZero,
NInt<U>: Mul<A>,
NInt<U>: Mul<V>,
impl<V, A, U> Mul<TArr<V, A>> for NInt<U> where
U: Unsigned + NonZero,
NInt<U>: Mul<A>,
NInt<U>: Mul<V>, type Output = TArr<<NInt<U> as Mul<V>>::Output, <NInt<U> as Mul<A>>::Output>
The resulting type after applying the * operator.
fn mul(self, TArr<V, A>) -> <NInt<U> as Mul<TArr<V, A>>>::Output
fn mul(self, TArr<V, A>) -> <NInt<U> as Mul<TArr<V, A>>>::OutputPerforms the * operation.
impl<V, A> Mul<TArr<V, A>> for Z0 where
Z0: Mul<A>,
impl<V, A> Mul<TArr<V, A>> for Z0 where
Z0: Mul<A>, type Output = TArr<Z0, <Z0 as Mul<A>>::Output>
The resulting type after applying the * operator.
fn mul(self, TArr<V, A>) -> <Z0 as Mul<TArr<V, A>>>::Output
fn mul(self, TArr<V, A>) -> <Z0 as Mul<TArr<V, A>>>::OutputPerforms the * operation.
impl<V, A, U> Mul<TArr<V, A>> for PInt<U> where
U: Unsigned + NonZero,
PInt<U>: Mul<A>,
PInt<U>: Mul<V>,
impl<V, A, U> Mul<TArr<V, A>> for PInt<U> where
U: Unsigned + NonZero,
PInt<U>: Mul<A>,
PInt<U>: Mul<V>, type Output = TArr<<PInt<U> as Mul<V>>::Output, <PInt<U> as Mul<A>>::Output>
The resulting type after applying the * operator.
fn mul(self, TArr<V, A>) -> <PInt<U> as Mul<TArr<V, A>>>::Output
fn mul(self, TArr<V, A>) -> <PInt<U> as Mul<TArr<V, A>>>::OutputPerforms the * operation.
impl<V, A> Debug for TArr<V, A> where
A: Debug,
V: Debug,
impl<V, A> Debug for TArr<V, A> where
A: Debug,
V: Debug, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<V, A> Clone for TArr<V, A> where
A: Clone,
V: Clone,
impl<V, A> Clone for TArr<V, A> where
A: Clone,
V: Clone, fn clone(&self) -> TArr<V, A>
fn clone(&self) -> TArr<V, A>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<Vl, Al, Vr, Ar> Sub<TArr<Vr, Ar>> for TArr<Vl, Al> where
Al: Sub<Ar>,
Vl: Sub<Vr>,
impl<Vl, Al, Vr, Ar> Sub<TArr<Vr, Ar>> for TArr<Vl, Al> where
Al: Sub<Ar>,
Vl: Sub<Vr>, type Output = TArr<<Vl as Sub<Vr>>::Output, <Al as Sub<Ar>>::Output>
The resulting type after applying the - operator.
fn sub(self, TArr<Vr, Ar>) -> <TArr<Vl, Al> as Sub<TArr<Vr, Ar>>>::Output
fn sub(self, TArr<Vr, Ar>) -> <TArr<Vl, Al> as Sub<TArr<Vr, Ar>>>::OutputPerforms the - operation.
impl<V, A> PartialEq<TArr<V, A>> for TArr<V, A> where
A: PartialEq<A>,
V: PartialEq<V>,
impl<V, A> PartialEq<TArr<V, A>> for TArr<V, A> where
A: PartialEq<A>,
V: PartialEq<V>, fn eq(&self, other: &TArr<V, A>) -> bool
fn eq(&self, other: &TArr<V, A>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TArr<V, A>) -> bool
fn ne(&self, other: &TArr<V, A>) -> boolThis method tests for !=.
impl<V, A> Eq for TArr<V, A> where
A: Eq,
V: Eq,
impl<V, A> Eq for TArr<V, A> where
A: Eq,
V: Eq, impl<V, A> Copy for TArr<V, A> where
A: Copy,
V: Copy,
impl<V, A> Copy for TArr<V, A> where
A: Copy,
V: Copy, impl<Al, Vl, Ar, Vr> Add<TArr<Vr, Ar>> for TArr<Vl, Al> where
Al: Add<Ar>,
Vl: Add<Vr>,
impl<Al, Vl, Ar, Vr> Add<TArr<Vr, Ar>> for TArr<Vl, Al> where
Al: Add<Ar>,
Vl: Add<Vr>, type Output = TArr<<Vl as Add<Vr>>::Output, <Al as Add<Ar>>::Output>
The resulting type after applying the + operator.
fn add(self, TArr<Vr, Ar>) -> <TArr<Vl, Al> as Add<TArr<Vr, Ar>>>::Output
fn add(self, TArr<Vr, Ar>) -> <TArr<Vl, Al> as Add<TArr<Vr, Ar>>>::OutputPerforms the + operation.
impl<V, A> Neg for TArr<V, A> where
A: Neg,
V: Neg,
impl<V, A> Neg for TArr<V, A> where
A: Neg,
V: Neg,