pub struct AnnotationFactId { /* private fields */ }Expand description
Identity of an independent annotation fact.
Implementations§
Source§impl AnnotationFactId
impl AnnotationFactId
Sourcepub const fn new(subject: AnnotationSubjectId, kind: AnnotationKindId) -> Self
pub const fn new(subject: AnnotationSubjectId, kind: AnnotationKindId) -> Self
Construct an annotation identity.
Sourcepub const fn subject(&self) -> &AnnotationSubjectId
pub const fn subject(&self) -> &AnnotationSubjectId
Return the annotated subject.
Sourcepub const fn kind(&self) -> &AnnotationKindId
pub const fn kind(&self) -> &AnnotationKindId
Return the annotation kind.
Trait Implementations§
Source§impl Clone for AnnotationFactId
impl Clone for AnnotationFactId
Source§fn clone(&self) -> AnnotationFactId
fn clone(&self) -> AnnotationFactId
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 AnnotationFactId
impl Debug for AnnotationFactId
impl Eq for AnnotationFactId
Source§impl Hash for AnnotationFactId
impl Hash for AnnotationFactId
Source§impl Ord for AnnotationFactId
impl Ord for AnnotationFactId
Source§fn cmp(&self, other: &AnnotationFactId) -> Ordering
fn cmp(&self, other: &AnnotationFactId) -> 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 AnnotationFactId
impl PartialEq for AnnotationFactId
Source§impl PartialOrd for AnnotationFactId
impl PartialOrd for AnnotationFactId
Source§impl Serialize for AnnotationFactId
impl Serialize for AnnotationFactId
impl StructuralPartialEq for AnnotationFactId
Auto Trait Implementations§
impl Freeze for AnnotationFactId
impl RefUnwindSafe for AnnotationFactId
impl Send for AnnotationFactId
impl Sync for AnnotationFactId
impl Unpin for AnnotationFactId
impl UnsafeUnpin for AnnotationFactId
impl UnwindSafe for AnnotationFactId
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