Struct hypergraph::HyperedgeIndex
source · pub struct HyperedgeIndex(pub usize);Expand description
Hyperedge 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 HyperedgeIndex
impl Clone for HyperedgeIndex
source§fn clone(&self) -> HyperedgeIndex
fn clone(&self) -> HyperedgeIndex
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 HyperedgeIndex
impl Debug for HyperedgeIndex
source§impl Display for HyperedgeIndex
impl Display for HyperedgeIndex
source§impl From<usize> for HyperedgeIndex
impl From<usize> for HyperedgeIndex
source§impl Hash for HyperedgeIndex
impl Hash for HyperedgeIndex
source§impl Ord for HyperedgeIndex
impl Ord for HyperedgeIndex
source§fn cmp(&self, other: &HyperedgeIndex) -> Ordering
fn cmp(&self, other: &HyperedgeIndex) -> 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<HyperedgeIndex> for HyperedgeIndex
impl PartialEq<HyperedgeIndex> for HyperedgeIndex
source§fn eq(&self, other: &HyperedgeIndex) -> bool
fn eq(&self, other: &HyperedgeIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<HyperedgeIndex> for HyperedgeIndex
impl PartialOrd<HyperedgeIndex> for HyperedgeIndex
source§fn partial_cmp(&self, other: &HyperedgeIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &HyperedgeIndex) -> 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 HyperedgeIndex
impl Eq for HyperedgeIndex
impl StructuralEq for HyperedgeIndex
impl StructuralPartialEq for HyperedgeIndex
Auto Trait Implementations§
impl RefUnwindSafe for HyperedgeIndex
impl Send for HyperedgeIndex
impl Sync for HyperedgeIndex
impl Unpin for HyperedgeIndex
impl UnwindSafe for HyperedgeIndex
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
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.