pub enum BcsrRole {
Head,
Tail,
}Expand description
Side of a directed hyperedge an incidence belongs to.
oxgraph-hyper keeps the participation role as an associated type rather
than a concrete enum so views can pick whatever vocabulary fits their
storage. BcsrRole is the role chosen for BcsrHypergraph:
each participant is either on the head side or the tail side of a directed
hyperedge. Role bytes are not stored — the role is recovered from which
section the participant lives in.
§Performance
Copying, comparing, ordering, hashing, and debug-formatting are O(1).
Variants§
Head
The vertex participates on the source (head) side of a directed hyperedge.
Tail
The vertex participates on the target (tail) side of a directed hyperedge.
Trait Implementations§
Source§impl Ord for BcsrRole
impl Ord for BcsrRole
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 PartialOrd for BcsrRole
impl PartialOrd for BcsrRole
impl Copy for BcsrRole
impl Eq for BcsrRole
impl StructuralPartialEq for BcsrRole
Auto Trait Implementations§
impl Freeze for BcsrRole
impl RefUnwindSafe for BcsrRole
impl Send for BcsrRole
impl Sync for BcsrRole
impl Unpin for BcsrRole
impl UnsafeUnpin for BcsrRole
impl UnwindSafe for BcsrRole
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