Struct fera_graph::props::ArrayProp
[−]
[src]
pub struct ArrayProp<P, D> { /* fields omitted */ }
A property backed by an array.
Trait Implementations
impl<P: Clone, D: Clone> Clone for ArrayProp<P, D>
[src]
fn clone(&self) -> ArrayProp<P, D>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<P: Debug, D: Debug> Debug for ArrayProp<P, D>
[src]
impl<I, P, D> PropGet<I> for ArrayProp<P, D> where
P: PropGet<I, Output = usize>,
D: Index<usize>,
D::Output: Clone + Sized,
[src]
P: PropGet<I, Output = usize>,
D: Index<usize>,
D::Output: Clone + Sized,
type Output = D::Output
fn get(&self, item: I) -> D::Output
[src]
Returns the value associated with key
.
fn map<F, O>(self, fun: F) -> Map<Self, F> where
Self: Sized,
F: Fn(Self::Output) -> O,
[src]
Self: Sized,
F: Fn(Self::Output) -> O,
Creates a mapped property that maps each property value using fun
.
fn by_ref(&self) -> &Self
[src]
Returns a reference to this property.
impl<I, P, D> Index<I> for ArrayProp<P, D> where
P: PropGet<I, Output = usize>,
D: Index<usize>,
[src]
P: PropGet<I, Output = usize>,
D: Index<usize>,
type Output = D::Output
The returned type after indexing.
fn index(&self, item: I) -> &Self::Output
[src]
Performs the indexing (container[index]
) operation.
impl<I, P, D> IndexMut<I> for ArrayProp<P, D> where
P: PropGet<I, Output = usize>,
D: IndexMut<usize>,
[src]
P: PropGet<I, Output = usize>,
D: IndexMut<usize>,
fn index_mut(&mut self, item: I) -> &mut Self::Output
[src]
Performs the mutable indexing (container[index]
) operation.
impl<T, G> VertexPropMutNew<G, T> for ArrayProp<VertexIndexProp<G>, Vec<T>> where
G: VertexList + WithVertexIndexProp,
[src]
G: VertexList + WithVertexIndexProp,
fn new_vertex_prop(g: &G, value: T) -> Self where
T: Clone,
[src]
T: Clone,
Creates a new vertex prop. Read more
impl<T, G> EdgePropMutNew<G, T> for ArrayProp<EdgeIndexProp<G>, Vec<T>> where
G: EdgeList + WithEdgeIndexProp,
[src]
G: EdgeList + WithEdgeIndexProp,
fn new_edge_prop(g: &G, value: T) -> Self where
T: Clone,
[src]
T: Clone,
Creates a new edge prop. Read more