pub enum GenericConstraint {
Dim,
Index,
Nat,
Type,
}Expand description
Constraint on a generic parameter.
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).
Type
F: Type – the generic stands for any type (unconstrained phantom parameter).
Trait Implementations§
Source§impl Clone for GenericConstraint
impl Clone for GenericConstraint
Source§fn clone(&self) -> GenericConstraint
fn clone(&self) -> GenericConstraint
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 GenericConstraint
Source§impl Debug for GenericConstraint
impl Debug for GenericConstraint
impl Eq for GenericConstraint
Source§impl FormatEquivalent for GenericConstraint
impl FormatEquivalent for GenericConstraint
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.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 GenericConstraint
impl PartialEq for GenericConstraint
Source§fn eq(&self, other: &GenericConstraint) -> bool
fn eq(&self, other: &GenericConstraint) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenericConstraint
Auto Trait Implementations§
impl Freeze for GenericConstraint
impl RefUnwindSafe for GenericConstraint
impl Send for GenericConstraint
impl Sync for GenericConstraint
impl Unpin for GenericConstraint
impl UnsafeUnpin for GenericConstraint
impl UnwindSafe for GenericConstraint
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.