Trait fera_graph::props::PropGet

source ·
pub trait PropGet<K> {
    type Output: Sized;

    fn get(&self, key: K) -> Self::Output;

    fn map<F, O>(self, fun: F) -> Map<Self, F>
    where
        Self: Sized,
        F: Fn(Self::Output) -> O
, { ... } fn by_ref(&self) -> &Self { ... } }
Expand description

An abstract property that maps keys in domain K to the corresponding values.

Required Associated Types

Required Methods

Returns the value associated with key.

Provided Methods

Creates a mapped property that maps each property value using fun.

Returns a reference to this property.

Implementations on Foreign Types

Implementors