[][src]Trait agnes::label::Valued

pub trait Valued {
    type Value;
    fn value_ref(&self) -> &Self::Value;
fn value_mut(&mut self) -> &mut Self::Value;
fn value(self) -> Self::Value; }

Trait for extracting the an associated value of a value-holding container (e.g. TypedValue, Labeled).

Associated Types

type Value

The associated value.

Loading content...

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.

Loading content...

Implementors

impl<D, V> Valued for TypedValue<D, V> where
    V: Valued
[src]

type Value = V::Value

impl<L, V> Valued for Labeled<L, V> where
    V: Valued
[src]

type Value = V::Value

impl<T> Valued for T where
    T: SelfValued
[src]

type Value = Self

Loading content...