pub struct EdgeList<NI, EV>where
NI: Idx,{ /* private fields */ }Implementations§
Source§impl<NI, EV> EdgeList<NI, EV>
impl<NI, EV> EdgeList<NI, EV>
pub fn new(edges: Vec<(NI, NI, EV)>) -> EdgeList<NI, EV>
pub fn with_max_node_id( edges: Vec<(NI, NI, EV)>, max_node_id: NI, ) -> EdgeList<NI, EV>
Trait Implementations§
Source§impl<NI, EV> Edges for EdgeList<NI, EV>
impl<NI, EV> 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 EdgeList<NI, EV>: 'a
fn edges(&self) -> <EdgeList<NI, EV> as Edges>::EdgeIter<'_>
fn max_node_id(&self) -> <EdgeList<NI, EV> as Edges>::NI
fn degrees( &self, node_count: Self::NI, direction: Direction, ) -> Vec<Atomic<Self::NI>>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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