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