pub enum AnnotationSubjectId {
Type(TypeId),
Sub(SubFactId),
Value(ValueFactId),
Owns(OwnsFactId),
Relates(RelatesFactId),
Plays(PlaysFactId),
Function(FunctionId),
}Expand description
A structural fact that may carry an independent annotation.
Variants§
Type(TypeId)
A type declaration.
Sub(SubFactId)
A subtype edge.
Value(ValueFactId)
An attribute value declaration.
Owns(OwnsFactId)
An ownership declaration.
Relates(RelatesFactId)
A related-role declaration.
Plays(PlaysFactId)
A role-playing declaration.
Function(FunctionId)
A function declaration.
Trait Implementations§
Source§impl Clone for AnnotationSubjectId
impl Clone for AnnotationSubjectId
Source§fn clone(&self) -> AnnotationSubjectId
fn clone(&self) -> AnnotationSubjectId
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 moreSource§impl Debug for AnnotationSubjectId
impl Debug for AnnotationSubjectId
impl Eq for AnnotationSubjectId
Source§impl Hash for AnnotationSubjectId
impl Hash for AnnotationSubjectId
Source§impl Ord for AnnotationSubjectId
impl Ord for AnnotationSubjectId
Source§fn cmp(&self, other: &AnnotationSubjectId) -> Ordering
fn cmp(&self, other: &AnnotationSubjectId) -> 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 AnnotationSubjectId
impl PartialEq for AnnotationSubjectId
Source§impl PartialOrd for AnnotationSubjectId
impl PartialOrd for AnnotationSubjectId
Source§impl Serialize for AnnotationSubjectId
impl Serialize for AnnotationSubjectId
impl StructuralPartialEq for AnnotationSubjectId
Auto Trait Implementations§
impl Freeze for AnnotationSubjectId
impl RefUnwindSafe for AnnotationSubjectId
impl Send for AnnotationSubjectId
impl Sync for AnnotationSubjectId
impl Unpin for AnnotationSubjectId
impl UnsafeUnpin for AnnotationSubjectId
impl UnwindSafe for AnnotationSubjectId
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