pub struct TArr<V, A> { /* fields omitted */ }
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.
impl<Al, Vl, Ar, Vr> Add<TArr<Vr, Ar>> for TArr<Vl, Al> where
Al: Add<Ar>,
Vl: Add<Vr>,
The resulting type after applying the +
operator.
fn add(self, rhs: TArr<Vr, Ar>) -> Self::Output
impl<V: Clone, A: Clone> Clone for TArr<V, A>
Performs copy-assignment from source
. Read more
impl<V: Debug, A: Debug> Debug for TArr<V, A>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Formats the value using the given formatter. Read more
impl<V, A, Rhs> Div<Rhs> for TArr<V, A> where
V: Div<Rhs>,
A: Div<Rhs>,
Rhs: Copy,
The resulting type after applying the /
operator.
fn div(self, rhs: Rhs) -> Self::Output
impl<V: Hash, A: Hash> Hash for TArr<V, A>
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
1.3.0
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
The length as a type-level unsigned integer.
This function isn’t used in this crate, but may be useful for others.
impl<V, A, Rhs> Mul<Rhs> for TArr<V, A> where
V: Mul<Rhs>,
A: Mul<Rhs>,
Rhs: Copy,
The resulting type after applying the *
operator.
fn mul(self, rhs: Rhs) -> Self::Output
impl<V, A> Mul<TArr<V, A>> for Z0 where
Z0: Mul<A>,
The resulting type after applying the *
operator.
fn mul(self, rhs: TArr<V, A>) -> Self::Output
The resulting type after applying the *
operator.
fn mul(self, rhs: TArr<V, A>) -> Self::Output
The resulting type after applying the *
operator.
fn mul(self, rhs: TArr<V, A>) -> Self::Output
impl<V, A> Neg for TArr<V, A> where
V: Neg,
A: Neg,
The resulting type after applying the -
operator.
fn neg(self) -> Self::Output
impl<V: Ord, A: Ord> Ord for TArr<V, A>
fn cmp(&self, other: &TArr<V, A>) -> Ordering
This method returns an [Ordering
] between self
and other
. Read more
1.21.0
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0
fn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval. Read more
The type of the result of the division
Method for performing the division
impl<V: PartialEq, A: PartialEq> PartialEq<TArr<V, A>> for TArr<V, A>
fn eq(&self, other: &TArr<V, A>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TArr<V, A>) -> bool
This method tests for !=
.
impl<V: PartialOrd, A: PartialOrd> PartialOrd<TArr<V, A>> for TArr<V, A>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0
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
1.0.0
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
1.0.0
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<V, A, Rhs> Rem<Rhs> for TArr<V, A> where
V: Rem<Rhs>,
A: Rem<Rhs>,
Rhs: Copy,
The resulting type after applying the %
operator.
fn rem(self, rhs: Rhs) -> Self::Output
impl<Vl, Al, Vr, Ar> Sub<TArr<Vr, Ar>> for TArr<Vl, Al> where
Vl: Sub<Vr>,
Al: Sub<Ar>,
The resulting type after applying the -
operator.
fn sub(self, rhs: TArr<Vr, Ar>) -> Self::Output
impl<V: Copy, A: Copy> Copy for TArr<V, A>
impl<V: Eq, A: Eq> Eq for TArr<V, A>
impl<V, A> StructuralEq for TArr<V, A>
impl<V, A> StructuralPartialEq for TArr<V, A>
impl<V, A> Send for TArr<V, A> where
A: Send,
V: Send,
impl<V, A> Sync for TArr<V, A> where
A: Sync,
V: Sync,
impl<V, A> Unpin for TArr<V, A> where
A: Unpin,
V: Unpin,
impl<T> Any for T where
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>