Trait fera_graph::graphs::WithVertex
[−]
[src]
pub trait WithVertex: Sized + for<'a> VertexTypes<'a, Self> { type Vertex: 'static + GraphItem; type OptionVertex: 'static + GraphItem + Optional<Vertex<Self>> + From<Option<Vertex<Self>>>; fn vertex_none() -> OptionVertex<Self> { ... } fn vertex_some(v: Vertex<Self>) -> OptionVertex<Self> { ... } fn vertex_prop<P, T>(&self, value: T) -> P
where
P: VertexPropMutNew<Self, T>,
T: Clone, { ... } fn vertex_prop_from_fn<P, T, F>(&self, fun: F) -> P
where
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone, { ... } }
Associated Types
type Vertex: 'static + GraphItem
type OptionVertex: 'static + GraphItem + Optional<Vertex<Self>> + From<Option<Vertex<Self>>>
Provided Methods
fn vertex_none() -> OptionVertex<Self>
fn vertex_some(v: Vertex<Self>) -> OptionVertex<Self>
fn vertex_prop<P, T>(&self, value: T) -> P where
P: VertexPropMutNew<Self, T>,
T: Clone,
P: VertexPropMutNew<Self, T>,
T: Clone,
fn vertex_prop_from_fn<P, T, F>(&self, fun: F) -> P where
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
Implementations on Foreign Types
impl<'a, G: WithVertex> WithVertex for &'a G
[src]
type Vertex = Vertex<G>
type OptionVertex = OptionVertex<G>
fn vertex_none() -> OptionVertex<Self>
[src]
fn vertex_some(v: Vertex<Self>) -> OptionVertex<Self>
[src]
fn vertex_prop<P, T>(&self, value: T) -> P where
P: VertexPropMutNew<Self, T>,
T: Clone,
[src]
P: VertexPropMutNew<Self, T>,
T: Clone,
fn vertex_prop_from_fn<P, T, F>(&self, fun: F) -> P where
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
[src]
Self: VertexList,
P: VertexPropMutNew<Self, T>,
F: FnMut(Vertex<Self>) -> T,
T: Default + Clone,
Implementors
impl<'a, G> WithVertex for Subgraph<'a, G> where
G: 'a + Graph, type Vertex = Vertex<G>; type OptionVertex = OptionVertex<G>;impl<'a, G> WithVertex for SpanningSubgraph<'a, G> where
G: 'a + WithEdge + WithVertexProp<Vec<Edge<G>>>, type Vertex = Vertex<G>; type OptionVertex = OptionVertex<G>;impl<V, K> WithVertex for AdjSet<V, K> where
V: AdjSetVertex,
K: AdjSetEdgeKind<V>, type Vertex = V; type OptionVertex = Option<V>;impl<K: CompleteEdgeKind> WithVertex for Complete<K> type Vertex = CVertex; type OptionVertex = OptionalMax<CVertex>;
impl<V: Num, K: StaticEdgeKind> WithVertex for Static<V, K> type Vertex = StaticVertex<V>; type OptionVertex = OptionalMax<StaticVertex<V>>;