pub struct LinkedListGraphBuilder<ID, N, E> { /* private fields */ }
Expand description
A builder for a LinkedListGraph.
The basic task is to arrange the final outgoing and incoming edges in the linked lists appropriately (i.e. first outgoing, then incoming edges).
Trait Implementations§
Source§impl<ID, N, E> Builder for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> Builder for LinkedListGraphBuilder<ID, N, E>
Source§type Graph = LinkedListGraph<ID, N, E>
type Graph = LinkedListGraph<ID, N, E>
The graph type produced by this builder.
Source§fn with_capacities(nnodes: usize, nedges: usize) -> Self
fn with_capacities(nnodes: usize, nedges: usize) -> Self
Create a new, empty builder. Read more
Source§fn reserve(&mut self, nnodes: usize, nedges: usize)
fn reserve(&mut self, nnodes: usize, nedges: usize)
Reserve memory for a certain number of nodes and edges.
Source§fn into_graph(self) -> LinkedListGraph<ID, N, E>
fn into_graph(self) -> LinkedListGraph<ID, N, E>
Turn the builder into a graph.
Auto Trait Implementations§
impl<ID, N, E> Freeze for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> RefUnwindSafe for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> Send for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> Sync for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> Unpin for LinkedListGraphBuilder<ID, N, E>
impl<ID, N, E> UnwindSafe for LinkedListGraphBuilder<ID, N, E>
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