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

Node identifier.

Aliased Type§

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

Implementations§

source§

impl<Ix> NodeIndex<Ix>where Ix: IndexType,

source

pub fn new(x: usize) -> NodeIndex<Ix>

source

pub fn index(self) -> usize

source

pub fn end() -> NodeIndex<Ix>

Trait Implementations§

source§

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

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 for NodeIndex<Ix>where Ix: Debug,

source§

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

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

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

source§

fn default() -> NodeIndex<Ix>

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

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

source§

fn from(ix: Ix) -> NodeIndex<Ix>

Converts to this type from the input type.
source§

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

source§

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

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 for NodeIndex<Ix>where Ix: IndexType,

source§

fn index(&self) -> usize

source§

fn new(x: usize) -> NodeIndex<Ix>

source§

fn max() -> NodeIndex<Ix>

source§

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

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<NodeIndex<Ix>> for NodeIndex<Ix>where Ix: PartialEq<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<NodeIndex<Ix>> for NodeIndex<Ix>where Ix: PartialOrd<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 for NodeIndex<Ix>where Ix: Copy,

source§

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

source§

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

source§

impl<Ix> StructuralEq for NodeIndex<Ix>

source§

impl<Ix> StructuralPartialEq for NodeIndex<Ix>