pub struct Dynamic { /* private fields */ }Expand description
Dim of dynamically-sized algebraic entities.
Implementations§
Trait Implementations§
impl Copy for Dynamic
Source§impl<'de> Deserialize<'de> for Dynamic
Available on crate feature serde-serialize only.
impl<'de> Deserialize<'de> for Dynamic
Available on crate feature
serde-serialize only.Source§fn deserialize<D>(
deserializer: D,
) -> Result<Dynamic, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Dynamic, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Dim for Dynamic
impl Dim for Dynamic
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) -> Dynamic
fn from_usize(dim: usize) -> Dynamic
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 Dynamic
impl IsDynamic for Dynamic
impl IsNotStaticOne for Dynamic
Source§impl Serialize for Dynamic
Available on crate feature serde-serialize only.
impl Serialize for Dynamic
Available on crate feature
serde-serialize only.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 Dynamic
Auto Trait Implementations§
impl Freeze for Dynamic
impl RefUnwindSafe for Dynamic
impl Send for Dynamic
impl Sync for Dynamic
impl Unpin for Dynamic
impl UnsafeUnpin for Dynamic
impl UnwindSafe for Dynamic
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.