pub struct EdgeList<NI: Idx, EV> { /* private fields */ }Implementations§
Source§impl<NI: Idx, EV: Sync> EdgeList<NI, EV>
impl<NI: Idx, EV: Sync> EdgeList<NI, EV>
pub fn new(edges: Vec<(NI, NI, EV)>) -> Self
pub fn with_max_node_id(edges: Vec<(NI, NI, EV)>, max_node_id: NI) -> Self
Trait Implementations§
Source§impl<NI: Idx, EV: Copy + Send + Sync> Edges for EdgeList<NI, EV>
impl<NI: Idx, EV: Copy + Send + Sync> Edges for EdgeList<NI, EV>
type NI = NI
type EV = EV
type EdgeIter<'a> = Copied<Iter<'a, (<EdgeList<NI, EV> as Edges>::NI, <EdgeList<NI, EV> as Edges>::NI, <EdgeList<NI, EV> as Edges>::EV)>> where Self: 'a
fn edges(&self) -> Self::EdgeIter<'_>
fn max_node_id(&self) -> Self::NI
fn degrees( &self, node_count: Self::NI, direction: Direction, ) -> Vec<Atomic<Self::NI>>
Source§impl<'gdl, NI, EV> From<&'gdl Graph> for EdgeList<NI, EV>
Available on crate feature gdl only.
impl<'gdl, NI, EV> From<&'gdl Graph> for EdgeList<NI, EV>
Available on crate feature
gdl only.Auto Trait Implementations§
impl<NI, EV> Freeze for EdgeList<NI, EV>where
NI: Freeze,
impl<NI, EV> RefUnwindSafe for EdgeList<NI, EV>where
NI: RefUnwindSafe,
EV: RefUnwindSafe,
impl<NI, EV> Send for EdgeList<NI, EV>where
EV: Send,
impl<NI, EV> Sync for EdgeList<NI, EV>where
EV: Sync,
impl<NI, EV> Unpin for EdgeList<NI, EV>where
NI: Unpin,
impl<NI, EV> UnsafeUnpin for EdgeList<NI, EV>where
NI: UnsafeUnpin,
impl<NI, EV> UnwindSafe for EdgeList<NI, EV>where
NI: UnwindSafe,
EV: UnwindSafe,
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