Struct rs_graph::attributed::AttributedBuilder
source · pub struct AttributedBuilder<B, Gx, Nx, Ex, Ax>(_, _);
Expand description
Default builder for an attributes graph.
This builder requires the attributes to be default constructable. All attributes will be initialized with these default values.
Trait Implementations
sourceimpl<'b, B, G, Gx, Nx, Ex, Ax> Builder for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
B: Builder<Graph = G>,
G: Graph<'b>,
Gx: Default,
Nx: Default,
Ex: Default,
Ax: Default,
impl<'b, B, G, Gx, Nx, Ex, Ax> Builder for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
B: Builder<Graph = G>,
G: Graph<'b>,
Gx: Default,
Nx: Default,
Ex: Default,
Ax: Default,
type Graph = Attributed<G, Gx, Nx, Ex, Ax>
type Graph = Attributed<G, Gx, Nx, Ex, Ax>
The graph type produced by this builder.
sourcefn with_capacities(nnodes: usize, nedges: usize) -> Self
fn with_capacities(nnodes: usize, nedges: usize) -> Self
Create a new, empty builder. Read more
sourcefn 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.
sourcefn to_graph(self) -> Attributed<G, Gx, Nx, Ex, Ax>
fn to_graph(self) -> Attributed<G, Gx, Nx, Ex, Ax>
Turn the builder into a graph.
Auto Trait Implementations
impl<B, Gx, Nx, Ex, Ax> RefUnwindSafe for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
Ax: RefUnwindSafe,
B: RefUnwindSafe,
Ex: RefUnwindSafe,
Gx: RefUnwindSafe,
Nx: RefUnwindSafe,
impl<B, Gx, Nx, Ex, Ax> Send for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
Ax: Send,
B: Send,
Ex: Send,
Gx: Send,
Nx: Send,
impl<B, Gx, Nx, Ex, Ax> Sync for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
Ax: Sync,
B: Sync,
Ex: Sync,
Gx: Sync,
Nx: Sync,
impl<B, Gx, Nx, Ex, Ax> Unpin for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
Ax: Unpin,
B: Unpin,
Ex: Unpin,
Gx: Unpin,
Nx: Unpin,
impl<B, Gx, Nx, Ex, Ax> UnwindSafe for AttributedBuilder<B, Gx, Nx, Ex, Ax>where
Ax: UnwindSafe,
B: UnwindSafe,
Ex: UnwindSafe,
Gx: UnwindSafe,
Nx: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more