Trait Edges

Source
pub trait Edges<I, D>
where I: Identity,
{ // Required method fn next_edge( &self, previous_edge_index: Option<usize>, ) -> Option<Edge<I, D>>; // Provided method fn edges(&self) -> EdgeIterator<'_, I, D, Self> where Self: Sized { ... } }
Expand description

Be able to derive a set of identifiers from a given item. Semantically this is Get “children” but not all graph operations are parent-child.

Given a type, find the next set of identities I that I need to traverse Metadata may also be optionally returned via the E value

Required Methods§

Source

fn next_edge(&self, previous_edge_index: Option<usize>) -> Option<Edge<I, D>>

Provided Methods§

Source

fn edges(&self) -> EdgeIterator<'_, I, D, Self>
where Self: Sized,

Implementations on Foreign Types§

Source§

impl<'a> Edges<ChunkId, ChunkChild> for Chunk<'a>

Source§

fn next_edge( &self, previous_edge_index: Option<usize>, ) -> Option<Edge<ChunkId, ChunkChild>>

Source§

impl<'a> Edges<ChunkId, ChunkParentOrSibling> for Chunk<'a>

Source§

fn next_edge( &self, previous_edge_index: Option<usize>, ) -> Option<Edge<ChunkId, ChunkParentOrSibling>>

Source§

impl<'a> Edges<ModuleIdentifier, (ImportType, ResolvedModule)> for Module<'a>

Source§

fn next_edge( &self, previous_edge_index: Option<usize>, ) -> Option<Edge<ModuleIdentifier, (ImportType, ResolvedModule)>>

Implementors§