Struct fera_graph::props::Map
[−]
[src]
pub struct Map<P, F>(_, _);
A property that maps the value of a wrapped property with a function.
This struct
is created by PropGet::map
.
Trait Implementations
impl<K, P, F, O> PropGet<K> for Map<P, F> where
P: PropGet<K>,
F: Fn(P::Output) -> O,
[src]
P: PropGet<K>,
F: Fn(P::Output) -> O,
type Output = O
fn get(&self, k: K) -> Self::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.