Struct hypergraph::VertexIndex
source · pub struct VertexIndex(pub usize);Expand description
Vertex stable index representation as usize. Uses the newtype index pattern. https://matklad.github.io/2018/06/04/newtype-index-pattern.html
Tuple Fields§
§0: usizeTrait Implementations§
source§impl Clone for VertexIndex
impl Clone for VertexIndex
source§fn clone(&self) -> VertexIndex
fn clone(&self) -> VertexIndex
Returns a copy of the value. Read more
1.0.0 · 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 VertexIndex
impl Debug for VertexIndex
source§impl Display for VertexIndex
impl Display for VertexIndex
source§impl From<usize> for VertexIndex
impl From<usize> for VertexIndex
source§impl Hash for VertexIndex
impl Hash for VertexIndex
source§impl Ord for VertexIndex
impl Ord for VertexIndex
source§fn cmp(&self, other: &VertexIndex) -> Ordering
fn cmp(&self, other: &VertexIndex) -> Ordering
1.21.0 · 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<VertexIndex> for VertexIndex
impl PartialEq<VertexIndex> for VertexIndex
source§fn eq(&self, other: &VertexIndex) -> bool
fn eq(&self, other: &VertexIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<VertexIndex> for VertexIndex
impl PartialOrd<VertexIndex> for VertexIndex
source§fn partial_cmp(&self, other: &VertexIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &VertexIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for VertexIndex
impl Eq for VertexIndex
impl StructuralEq for VertexIndex
impl StructuralPartialEq for VertexIndex
Auto Trait Implementations§
impl RefUnwindSafe for VertexIndex
impl Send for VertexIndex
impl Sync for VertexIndex
impl Unpin for VertexIndex
impl UnwindSafe for VertexIndex
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.