Struct fera_graph::props::FnProp
[−]
[src]
pub struct FnProp<F>(pub F);
A read only property backed by a function.
Trait Implementations
impl<F: Clone> Clone for FnProp<F>
[src]
fn clone(&self) -> FnProp<F>
[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<F: Copy> Copy for FnProp<F>
[src]
impl<F, I, T> PropGet<I> for FnProp<F> where
F: Fn(I) -> T,
T: Sized,
[src]
F: Fn(I) -> T,
T: Sized,
type Output = T
fn get(&self, item: I) -> T
[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.