pub struct U4;Expand description
A type level dimension.
Trait Implementations§
impl Copy for U4
Source§impl Dim for U4
impl Dim for U4
Source§fn try_to_usize() -> Option<usize>
fn try_to_usize() -> Option<usize>
Gets the compile-time value of
Self. Returns None if it is not known, i.e., if Self = Dynamic.Source§fn from_usize(dim: usize) -> U4
fn from_usize(dim: usize) -> U4
Builds an instance of
Self from a run-time value. Panics if Self is a type-level
integer and dim != Self::try_to_usize().unwrap().Source§fn value(&self) -> usize
fn value(&self) -> usize
Gets the run-time value of
self. For type-level integers, this is the same as
Self::try_to_usize().unwrap().fn is<D>() -> boolwhere
D: Dim,
impl Eq for U4
impl IsNotStaticOne for U4
impl StructuralPartialEq for U4
Auto Trait Implementations§
impl Freeze for U4
impl RefUnwindSafe for U4
impl Send for U4
impl Sync for U4
impl Unpin for U4
impl UnsafeUnpin for U4
impl UnwindSafe for U4
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.