pub struct Relation {
pub id: RelationId,
pub relation_type: Option<RelationTypeId>,
pub labels: Vec<LabelId>,
/* private fields */
}Expand description
An owned relation view: id, type, labels, and all properties in one read.
§Performance
Cloning is O(label count + property count).
Fields§
§id: RelationIdCanonical relation id.
relation_type: Option<RelationTypeId>The relation’s type, if set.
labels: Vec<LabelId>Labels assigned to this relation, ascending.
Implementations§
Trait Implementations§
impl Eq for Relation
impl StructuralPartialEq for Relation
Auto Trait Implementations§
impl Freeze for Relation
impl RefUnwindSafe for Relation
impl Send for Relation
impl Sync for Relation
impl Unpin for Relation
impl UnsafeUnpin for Relation
impl UnwindSafe for Relation
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