pub struct U52;Expand description
A type level dimension.
Trait Implementations§
impl Copy for U52
Source§impl<'de> Deserialize<'de> for U52
impl<'de> Deserialize<'de> for U52
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<U52, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<U52, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Dim for U52
impl Dim for U52
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) -> U52
fn from_usize(dim: usize) -> U52
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 U52
impl IsNotStaticOne for U52
Source§impl Serialize for U52
impl Serialize for U52
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for U52
Auto Trait Implementations§
impl Freeze for U52
impl RefUnwindSafe for U52
impl Send for U52
impl Sync for U52
impl Unpin for U52
impl UnsafeUnpin for U52
impl UnwindSafe for U52
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.