pub struct TArr<V, A> { /* private fields */ }
Expand description
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§
source§impl<V, A> Len for TArr<V, A>where
A: Len,
Length<A>: Add<B1>,
Sum<Length<A>, B1>: Unsigned,
impl<V, A> Len for TArr<V, A>where
A: Len,
Length<A>: Add<B1>,
Sum<Length<A>, B1>: Unsigned,
Size of a TypeArray
source§impl<V, A, U> Mul<TArr<V, A>> for NInt<U>where
U: Unsigned + NonZero,
NInt<U>: Mul<A> + Mul<V>,
impl<V, A, U> Mul<TArr<V, A>> for NInt<U>where
U: Unsigned + NonZero,
NInt<U>: Mul<A> + Mul<V>,
source§impl<V, A, U> Mul<TArr<V, A>> for PInt<U>where
U: Unsigned + NonZero,
PInt<U>: Mul<A> + Mul<V>,
impl<V, A, U> Mul<TArr<V, A>> for PInt<U>where
U: Unsigned + NonZero,
PInt<U>: Mul<A> + Mul<V>,
source§impl<V: Ord, A: Ord> Ord for TArr<V, A>
impl<V: Ord, A: Ord> Ord for TArr<V, A>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A>where
V: PartialDiv<Rhs>,
A: PartialDiv<Rhs>,
Rhs: Copy,
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A>where
V: PartialDiv<Rhs>,
A: PartialDiv<Rhs>,
Rhs: Copy,
§type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>
type Output = TArr<<V as PartialDiv<Rhs>>::Output, <A as PartialDiv<Rhs>>::Output>
The type of the result of the division
source§fn partial_div(self, rhs: Rhs) -> Self::Output
fn partial_div(self, rhs: Rhs) -> Self::Output
Method for performing the division
source§impl<V: PartialEq, A: PartialEq> PartialEq<TArr<V, A>> for TArr<V, A>
impl<V: PartialEq, A: PartialEq> PartialEq<TArr<V, A>> for TArr<V, A>
source§impl<V: PartialOrd, A: PartialOrd> PartialOrd<TArr<V, A>> for TArr<V, A>
impl<V: PartialOrd, A: PartialOrd> PartialOrd<TArr<V, A>> for TArr<V, A>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more