pub struct EdgeList<NI, EV>where
NI: Idx,{ /* private fields */ }
Implementations§
source§impl<NI, EV> EdgeList<NI, EV>where
NI: Idx,
EV: Sync,
impl<NI, EV> EdgeList<NI, EV>where NI: Idx, EV: Sync,
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>where
NI: Idx,
EV: Copy + Send + Sync,
impl<NI, EV> Edges for EdgeList<NI, EV>where NI: Idx, EV: Copy + Send + Sync,
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>>
source§impl<NI, I> From<EdgeIterator<NI, I>> for EdgeList<NI, ()>where
NI: Idx,
I: IntoIterator<Item = (NI, NI)>,
impl<NI, I> From<EdgeIterator<NI, I>> for EdgeList<NI, ()>where NI: Idx, I: IntoIterator<Item = (NI, NI)>,
source§impl<NI, EV, I> From<EdgeWithValueIterator<NI, EV, I>> for EdgeList<NI, EV>where
NI: Idx,
EV: Sync,
I: IntoIterator<Item = (NI, NI, EV)>,
impl<NI, EV, I> From<EdgeWithValueIterator<NI, EV, I>> for EdgeList<NI, EV>where NI: Idx, EV: Sync, I: IntoIterator<Item = (NI, NI, EV)>,
source§impl<NI, EV> TryFrom<&[u8]> for EdgeList<NI, EV>where
NI: Idx,
EV: ParseValue + Debug + Send + Sync,
impl<NI, EV> TryFrom<&[u8]> for EdgeList<NI, EV>where NI: Idx, EV: ParseValue + Debug + Send + Sync,
Auto Trait Implementations§
impl<NI, EV> RefUnwindSafe for EdgeList<NI, EV>where EV: RefUnwindSafe, NI: 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> UnwindSafe for EdgeList<NI, EV>where EV: UnwindSafe, NI: 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