pub enum AnnotationKind {
Abstract,
Independent,
Key,
Unique,
Card,
Regex,
Range,
Values,
Doc,
Meta,
}Expand description
Annotation category covered by the lowering profile.
Variants§
Abstract
Abstract-type annotation.
Independent
Independent-attribute annotation.
Key
Key annotation.
Unique
Unique annotation.
Card
Cardinality annotation.
Regex
Regular-expression constraint.
Range
Ordered range constraint.
Values
Enumerated-values constraint.
Doc
Documentation annotation.
Meta
Keyed metadata annotation.
Implementations§
Trait Implementations§
Source§impl Clone for AnnotationKind
impl Clone for AnnotationKind
Source§fn clone(&self) -> AnnotationKind
fn clone(&self) -> AnnotationKind
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 AnnotationKind
Source§impl Debug for AnnotationKind
impl Debug for AnnotationKind
impl Eq for AnnotationKind
Source§impl Hash for AnnotationKind
impl Hash for AnnotationKind
Source§impl Ord for AnnotationKind
impl Ord for AnnotationKind
Source§fn cmp(&self, other: &AnnotationKind) -> Ordering
fn cmp(&self, other: &AnnotationKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AnnotationKind
impl PartialEq for AnnotationKind
Source§impl PartialOrd for AnnotationKind
impl PartialOrd for AnnotationKind
Source§impl Serialize for AnnotationKind
impl Serialize for AnnotationKind
impl StructuralPartialEq for AnnotationKind
Auto Trait Implementations§
impl Freeze for AnnotationKind
impl RefUnwindSafe for AnnotationKind
impl Send for AnnotationKind
impl Sync for AnnotationKind
impl Unpin for AnnotationKind
impl UnsafeUnpin for AnnotationKind
impl UnwindSafe for AnnotationKind
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