pub struct U104;
Expand description
A type level dimension.
Trait Implementations§
source§impl Dim for U104
impl Dim for U104
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
. Read moresource§fn from_usize(dim: usize) -> U104
fn from_usize(dim: usize) -> U104
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()
. Read moresource§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()
. Read morefn is<D>() -> boolwhere
D: Dim,
impl Copy for U104
impl Eq for U104
impl IsNotStaticOne for U104
impl StructuralEq for U104
impl StructuralPartialEq for U104
Auto Trait Implementations§
impl RefUnwindSafe for U104
impl Send for U104
impl Sync for U104
impl Unpin for U104
impl UnwindSafe for U104
Blanket Implementations§
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§unsafe fn to_subset_unchecked(&self) -> SS
unsafe 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.