Struct graphannis_core::graph::storage::union::UnionEdgeContainer
source · pub struct UnionEdgeContainer<'a> { /* private fields */ }
Implementations§
source§impl<'a> UnionEdgeContainer<'a>
impl<'a> UnionEdgeContainer<'a>
pub fn new(containers: Vec<&'a dyn EdgeContainer>) -> UnionEdgeContainer<'a>
Trait Implementations§
source§impl<'a> EdgeContainer for UnionEdgeContainer<'a>
impl<'a> EdgeContainer for UnionEdgeContainer<'a>
source§fn get_outgoing_edges<'b>(
&'b self,
node: NodeID
) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
fn get_outgoing_edges<'b>( &'b self, node: NodeID ) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
Get all outgoing edges for a given
node
.source§fn get_ingoing_edges<'b>(
&'b self,
node: NodeID
) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
fn get_ingoing_edges<'b>( &'b self, node: NodeID ) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
Get all incoming edges for a given
node
.source§fn source_nodes<'b>(&'b self) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
fn source_nodes<'b>(&'b self) -> Box<dyn Iterator<Item = Result<NodeID>> + 'b>
Provides an iterator over all nodes of this edge container that are the source of an edge.
source§fn has_outgoing_edges(&self, node: NodeID) -> Result<bool>
fn has_outgoing_edges(&self, node: NodeID) -> Result<bool>
Return true of the given node has any outgoing edges.
source§fn has_ingoing_edges(&self, node: NodeID) -> Result<bool>
fn has_ingoing_edges(&self, node: NodeID) -> Result<bool>
Return true of the given node has any incoming edges.
fn get_statistics(&self) -> Option<&GraphStatistic>
Auto Trait Implementations§
impl<'a> Freeze for UnionEdgeContainer<'a>
impl<'a> !RefUnwindSafe for UnionEdgeContainer<'a>
impl<'a> Send for UnionEdgeContainer<'a>
impl<'a> Sync for UnionEdgeContainer<'a>
impl<'a> Unpin for UnionEdgeContainer<'a>
impl<'a> !UnwindSafe for UnionEdgeContainer<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more