pub struct GraphStream { /* private fields */ }Expand description
An iterator-backed stream of graph edges (u, v).
Use GraphStream::from_edges to create a stream from a vector, or
GraphStream::from_fn to wrap a lazy generator (e.g. reading a file
line-by-line without loading it all).
Implementations§
Source§impl GraphStream
impl GraphStream
Sourcepub fn from_edges(edges: Vec<(usize, usize)>) -> Self
pub fn from_edges(edges: Vec<(usize, usize)>) -> Self
Create a GraphStream from an owned vector of edges.
Auto Trait Implementations§
impl Freeze for GraphStream
impl !RefUnwindSafe for GraphStream
impl !Send for GraphStream
impl !Sync for GraphStream
impl Unpin for GraphStream
impl UnsafeUnpin for GraphStream
impl !UnwindSafe for GraphStream
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