Struct rs_graph::attributed::AttributedBuilder [−][src]
pub struct AttributedBuilder<B, Gx, Nx, Ex>(_, _);
👎 Deprecated since 0.17.0:
use rs-graph-derive crate instead
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
impl<'b, B, G, Gx, Nx, Ex> Builder for AttributedBuilder<B, Gx, Nx, Ex> where
B: Builder<Graph = G>,
G: GraphSize<'b>,
Gx: Default,
Nx: Default,
Ex: Default, [src]
impl<'b, B, G, Gx, Nx, Ex> Builder for AttributedBuilder<B, Gx, Nx, Ex> where
B: Builder<Graph = G>,
G: GraphSize<'b>,
Gx: Default,
Nx: Default,
Ex: Default, [src]type Graph = Attributed<G, Gx, Nx, Ex>
The graph type produced by this builder.
type Node = B::Node
The type of a nodes.
type Edge = B::Edge
The type of an edge.
fn with_capacities(nnodes: usize, nedges: usize) -> Self[src]
fn reserve(&mut self, nnodes: usize, nedges: usize)[src]
fn num_nodes(&self) -> usize[src]
fn num_edges(&self) -> usize[src]
fn add_node(&mut self) -> Self::Node[src]
fn add_nodes(&mut self, n: usize) -> Vec<Self::Node>[src]
fn add_edge(&mut self, u: Self::Node, v: Self::Node) -> Self::Edge[src]
fn node2id(&self, u: Self::Node) -> usize[src]
fn edge2id(&self, e: Self::Edge) -> usize[src]
fn into_graph(self) -> Attributed<G, Gx, Nx, Ex>[src]
fn new() -> Self[src]
Auto Trait Implementations
impl<B, Gx, Nx, Ex> RefUnwindSafe for AttributedBuilder<B, Gx, Nx, Ex> where
B: RefUnwindSafe,
Ex: RefUnwindSafe,
Gx: RefUnwindSafe,
Nx: RefUnwindSafe,
impl<B, Gx, Nx, Ex> RefUnwindSafe for AttributedBuilder<B, Gx, Nx, Ex> where
B: RefUnwindSafe,
Ex: RefUnwindSafe,
Gx: RefUnwindSafe,
Nx: RefUnwindSafe, impl<B, Gx, Nx, Ex> Send for AttributedBuilder<B, Gx, Nx, Ex> where
B: Send,
Ex: Send,
Gx: Send,
Nx: Send,
impl<B, Gx, Nx, Ex> Send for AttributedBuilder<B, Gx, Nx, Ex> where
B: Send,
Ex: Send,
Gx: Send,
Nx: Send, impl<B, Gx, Nx, Ex> Sync for AttributedBuilder<B, Gx, Nx, Ex> where
B: Sync,
Ex: Sync,
Gx: Sync,
Nx: Sync,
impl<B, Gx, Nx, Ex> Sync for AttributedBuilder<B, Gx, Nx, Ex> where
B: Sync,
Ex: Sync,
Gx: Sync,
Nx: Sync, impl<B, Gx, Nx, Ex> Unpin for AttributedBuilder<B, Gx, Nx, Ex> where
B: Unpin,
Ex: Unpin,
Gx: Unpin,
Nx: Unpin,
impl<B, Gx, Nx, Ex> Unpin for AttributedBuilder<B, Gx, Nx, Ex> where
B: Unpin,
Ex: Unpin,
Gx: Unpin,
Nx: Unpin, impl<B, Gx, Nx, Ex> UnwindSafe for AttributedBuilder<B, Gx, Nx, Ex> where
B: UnwindSafe,
Ex: UnwindSafe,
Gx: UnwindSafe,
Nx: UnwindSafe,
impl<B, Gx, Nx, Ex> UnwindSafe for AttributedBuilder<B, Gx, Nx, Ex> where
B: UnwindSafe,
Ex: UnwindSafe,
Gx: UnwindSafe,
Nx: UnwindSafe,