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
sourceimpl<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
sourceimpl<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>,
sourceimpl<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>,
sourceimpl<V, A> Ord for TArr<V, A> where
V: Ord,
A: Ord,
impl<V, A> Ord for TArr<V, A> where
V: Ord,
A: Ord,
sourceimpl<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
sourcepub fn partial_div(self, rhs: Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::Output
pub fn partial_div(self, rhs: Rhs) -> <TArr<V, A> as PartialDiv<Rhs>>::Output
Method for performing the division
sourceimpl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
V: PartialOrd<V>,
A: PartialOrd<A>,
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
V: PartialOrd<V>,
A: PartialOrd<A>,
sourcepub fn partial_cmp(&self, other: &TArr<V, A>) -> Option<Ordering>
pub 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
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
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 · sourcefn 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
impl<V, A> Copy for TArr<V, A> where
V: Copy,
A: Copy,
impl<V, A> Eq for TArr<V, A> where
V: Eq,
A: Eq,
impl<V, A> StructuralEq for TArr<V, A>
impl<V, A> StructuralPartialEq for TArr<V, A>
impl<V, A> TypeArray for TArr<V, A>
Auto Trait Implementations
impl<V, A> RefUnwindSafe for TArr<V, A> where
A: RefUnwindSafe,
V: RefUnwindSafe,
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<V, A> UnwindSafe for TArr<V, A> where
A: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more