Trait metafactory::GetterExperimental [-]  [+] [src]

pub trait Getter<T> {
    fn take(&self) -> T;
    fn boxed_clone(&self) -> Box<Getter<T> + 'static>;
}

Gettable value trait.

Required Methods

fn take(&self) -> T

Produce a new value.

fn boxed_clone(&self) -> Box<Getter<T> + 'static>

Create a clone for this getter.

This is kind of experimental solution - can not return plain traits as function result.

Implementors