[][src]Trait handlegraph::handlegraph::IntoHandles

pub trait IntoHandles: Sized {
    type Handles: Iterator<Item = Handle>;
    fn handles(self) -> Self::Handles;

    fn has_node<I: Into<NodeId>>(self, node_id: I) -> bool { ... }
}

Access all the handles in the graph as an iterator, and querying the graph for number of nodes, and presence of a node by ID.

Associated Types

type Handles: Iterator<Item = Handle>[src]

The iterator through all of the graph's handles.

Loading content...

Required methods

fn handles(self) -> Self::Handles[src]

Return an iterator on all the handles in the graph.

Loading content...

Provided methods

fn has_node<I: Into<NodeId>>(self, node_id: I) -> bool[src]

Returns true if the node node_id exists in the graph. The default implementation uses any on the iterator from Self::handles.

Loading content...

Implementors

impl<'a> IntoHandles for &'a HashGraph[src]

type Handles = NodeIdRefHandles<'a, Keys<'a, NodeId, Node>>

impl<'a> IntoHandles for &'a PackedGraph[src]

type Handles = NodeIdHandles<IndexMapIter<'a>>

Loading content...