pub struct VertexId(pub usize);Expand description
Stable index into a HypergraphRule::vertices vector.
Allocated in first-appearance order during construction. Two
Vertexes with the same logical variable name share one
VertexId. Used by Hyperedge::vertex_positions and
crate::hypergraph::var_order::VariableOrder implementations.
Tuple Fields§
§0: usizeTrait Implementations§
impl Copy for VertexId
impl Eq for VertexId
Source§impl Ord for VertexId
impl Ord for VertexId
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 VertexId
impl PartialOrd for VertexId
impl StructuralPartialEq for VertexId
Auto Trait Implementations§
impl Freeze for VertexId
impl RefUnwindSafe for VertexId
impl Send for VertexId
impl Sync for VertexId
impl Unpin for VertexId
impl UnsafeUnpin for VertexId
impl UnwindSafe for VertexId
Blanket Implementations§
impl<T> Allocation for T
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