[−][src]Struct rs_graph::attributed::AttributedBuilder
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]
B: Builder<Graph = G>,
G: GraphSize<'b>,
Gx: Default,
Nx: Default,
Ex: Default,
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 to_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,
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,
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,
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,
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,
B: UnwindSafe,
Ex: UnwindSafe,
Gx: UnwindSafe,
Nx: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,