pub enum RelationKind {
ParentChild,
Reference,
Ownership,
Membership,
Other,
}Expand description
Broad relation kind.
Variants§
ParentChild
Parent-child relationship.
Reference
Reference relationship.
Ownership
Ownership relationship.
Membership
Membership relationship.
Other
Other or unspecified relationship.
Trait Implementations§
Source§impl Clone for RelationKind
impl Clone for RelationKind
Source§fn clone(&self) -> RelationKind
fn clone(&self) -> RelationKind
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 RelationKind
impl Debug for RelationKind
Source§impl Default for RelationKind
impl Default for RelationKind
Source§fn default() -> RelationKind
fn default() -> RelationKind
Returns the “default value” for a type. Read more
Source§impl Hash for RelationKind
impl Hash for RelationKind
Source§impl Ord for RelationKind
impl Ord for RelationKind
Source§fn cmp(&self, other: &RelationKind) -> Ordering
fn cmp(&self, other: &RelationKind) -> 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
Source§impl PartialEq for RelationKind
impl PartialEq for RelationKind
Source§fn eq(&self, other: &RelationKind) -> bool
fn eq(&self, other: &RelationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RelationKind
impl PartialOrd for RelationKind
impl Copy for RelationKind
impl Eq for RelationKind
impl StructuralPartialEq for RelationKind
Auto Trait Implementations§
impl Freeze for RelationKind
impl RefUnwindSafe for RelationKind
impl Send for RelationKind
impl Sync for RelationKind
impl Unpin for RelationKind
impl UnsafeUnpin for RelationKind
impl UnwindSafe for RelationKind
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