Struct daggy::NodeIndex [] [src]

pub struct NodeIndex<Ix = u32>(_);

Node identifier.

Methods

impl<Ix> NodeIndex<Ix> where
    Ix: IndexType
[src]

[src]

[src]

[src]

Trait Implementations

impl<N, E, Ty, Ix> IndexMut<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ix: IndexType,
    Ty: EdgeType
[src]

Index the Graph by NodeIndex to access node weights.

Panics if the node doesn't exist.

Important traits for &'a mut R
[src]

Performs the mutable indexing (container[index]) operation.

impl<Ix> From<Ix> for NodeIndex<Ix> where
    Ix: IndexType
[src]

[src]

Performs the conversion.

impl<Ix> Copy for NodeIndex<Ix> where
    Ix: Copy
[src]

impl<Ix> VisitMap<NodeIndex<Ix>> for FixedBitSet where
    Ix: IndexType
[src]

[src]

Return true if the value is not already present.

[src]

impl<Ix> Eq for NodeIndex<Ix> where
    Ix: Eq
[src]

impl<Ix> PartialEq<NodeIndex<Ix>> for NodeIndex<Ix> where
    Ix: PartialEq<Ix>, 
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<N, E, Ty, Ix> Index<NodeIndex<Ix>> for Graph<N, E, Ty, Ix> where
    Ix: IndexType,
    Ty: EdgeType
[src]

Index the Graph by NodeIndex to access node weights.

Panics if the node doesn't exist.

The returned type after indexing.

Important traits for &'a mut R
[src]

Performs the indexing (container[index]) operation.

impl<Ix> Hash for NodeIndex<Ix> where
    Ix: Hash
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<Ix> PartialOrd<NodeIndex<Ix>> for NodeIndex<Ix> where
    Ix: PartialOrd<Ix>, 
[src]

[src]

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

[src]

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

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

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

[src]

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

impl<Ix> Debug for NodeIndex<Ix> where
    Ix: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<Ix> Clone for NodeIndex<Ix> where
    Ix: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Ix> Ord for NodeIndex<Ix> where
    Ix: Ord
[src]

[src]

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl<Ix> GraphIndex for NodeIndex<Ix> where
    Ix: IndexType
[src]

[src]

[src]

impl<N, E, Ix> Index<NodeIndex<Ix>> for Dag<N, E, Ix> where
    Ix: IndexType
[src]

The returned type after indexing.

Important traits for &'a mut R
[src]

Performs the indexing (container[index]) operation.

impl<N, E, Ix> IndexMut<NodeIndex<Ix>> for Dag<N, E, Ix> where
    Ix: IndexType
[src]

Important traits for &'a mut R
[src]

Performs the mutable indexing (container[index]) operation.