[−][src]Trait agnes::label::Valued
Trait for extracting the an associated value of a value-holding container (e.g. TypedValue, Labeled).
Associated Types
type Value
The associated value.
Required methods
fn value_ref(&self) -> &Self::Value
Read-only reference to the value.
fn value_mut(&mut self) -> &mut Self::Value
Mutable reference to the value.
fn value(self) -> Self::Value
Take ownership of the value.
Implementors
impl<D, V> Valued for TypedValue<D, V> where
V: Valued,
[src]
V: Valued,
type Value = V::Value
fn value_ref(&self) -> &Self::Value
[src]
fn value_mut(&mut self) -> &mut Self::Value
[src]
fn value(self) -> Self::Value
[src]
impl<L, V> Valued for Labeled<L, V> where
V: Valued,
[src]
V: Valued,
type Value = V::Value
fn value_ref(&self) -> &V::Value
[src]
fn value_mut(&mut self) -> &mut V::Value
[src]
fn value(self) -> V::Value
[src]
impl<T> Valued for T where
T: SelfValued,
[src]
T: SelfValued,