pub enum TypeGenericConstraint {
Dim,
Index,
Nat,
Unconstrained,
}Expand description
The constraint on a generic parameter of a type definition.
Variants§
Dim
D: Dim — the generic stands for a dimension.
Index
I: Index — the generic stands for an index.
Nat
N: Nat — the generic stands for a natural number (type-level).
Unconstrained
F: Type — unconstrained phantom type parameter.
Trait Implementations§
Source§impl Clone for TypeGenericConstraint
impl Clone for TypeGenericConstraint
Source§fn clone(&self) -> TypeGenericConstraint
fn clone(&self) -> TypeGenericConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TypeGenericConstraint
Source§impl Debug for TypeGenericConstraint
impl Debug for TypeGenericConstraint
impl Eq for TypeGenericConstraint
Source§impl From<GenericConstraint> for TypeGenericConstraint
impl From<GenericConstraint> for TypeGenericConstraint
Source§fn from(c: GenericConstraint) -> Self
fn from(c: GenericConstraint) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TypeGenericConstraint
impl PartialEq for TypeGenericConstraint
Source§fn eq(&self, other: &TypeGenericConstraint) -> bool
fn eq(&self, other: &TypeGenericConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeGenericConstraint
Auto Trait Implementations§
impl Freeze for TypeGenericConstraint
impl RefUnwindSafe for TypeGenericConstraint
impl Send for TypeGenericConstraint
impl Sync for TypeGenericConstraint
impl Unpin for TypeGenericConstraint
impl UnsafeUnpin for TypeGenericConstraint
impl UnwindSafe for TypeGenericConstraint
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.