Type Alias petgraph::matrix_graph::NodeIndex

source ·
pub type NodeIndex<Ix = u16> = NodeIndex<Ix>;
Expand description

Node identifier.

Aliased Type§

struct NodeIndex<Ix = u16>(/* private fields */);

Implementations§

source§

impl<Ix: IndexType> NodeIndex<Ix>

source

pub fn new(x: usize) -> Self

source

pub fn index(self) -> usize

source

pub fn end() -> Self

Trait Implementations§

source§

impl<Ix: Clone> Clone for NodeIndex<Ix>

source§

fn clone(&self) -> NodeIndex<Ix>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Ix: Debug> Debug for NodeIndex<Ix>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Ix: Default> Default for NodeIndex<Ix>

source§

fn default() -> NodeIndex<Ix>

Returns the “default value” for a type. Read more
source§

impl<Ix: IndexType> From<Ix> for NodeIndex<Ix>

source§

fn from(ix: Ix) -> Self

Converts to this type from the input type.
source§

impl<Ix: Hash> Hash for NodeIndex<Ix>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<Ix: IndexType> IndexType for NodeIndex<Ix>

source§

fn index(&self) -> usize

source§

fn new(x: usize) -> Self

source§

fn max() -> Self

source§

impl<Ix: Ord> Ord for NodeIndex<Ix>

source§

fn cmp(&self, other: &NodeIndex<Ix>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl<Ix: PartialEq> PartialEq<NodeIndex<Ix>> for NodeIndex<Ix>

source§

fn eq(&self, other: &NodeIndex<Ix>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Ix: PartialOrd> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix>

source§

fn partial_cmp(&self, other: &NodeIndex<Ix>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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 more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl<Ix: Copy> Copy for NodeIndex<Ix>

source§

impl<Ix: Eq> Eq for NodeIndex<Ix>

source§

impl<Ix: IndexType> GraphIndex for NodeIndex<Ix>

source§

impl<Ix> StructuralEq for NodeIndex<Ix>

source§

impl<Ix> StructuralPartialEq for NodeIndex<Ix>