pub struct TArr<V, A> {
first: V,
rest: A,
}
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.
Fields§
§first: V
§rest: A
Trait Implementations§
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>
impl<V, A, Rhs> PartialDiv<Rhs> for TArr<V, A>
source§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: PartialOrd, A: PartialOrd> PartialOrd for TArr<V, A>
impl<V: PartialOrd, A: PartialOrd> PartialOrd for TArr<V, A>
impl<V: Copy, A: Copy> Copy for TArr<V, A>
impl<V: Eq, A: Eq> Eq for TArr<V, A>
impl<V, A> Sealed 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> Freeze for TArr<V, A>
impl<V, A> RefUnwindSafe for TArr<V, A>where
V: RefUnwindSafe,
A: RefUnwindSafe,
impl<V, A> Send for TArr<V, A>
impl<V, A> Sync for TArr<V, A>
impl<V, A> Unpin for TArr<V, A>
impl<V, A> UnwindSafe for TArr<V, A>where
V: UnwindSafe,
A: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)