Trait adapton::reflect::Reflect
[−]
[src]
pub trait Reflect<T>: Debug { fn reflect(&self) -> T; }
This trait consists of the ability for a reference to Self
to
produce a T
. Conceptually, that value of type T is the
"reflection" of Self
. A large set of types in engine
implement this trait for a particular type in this module, which
represents its reflection. The documentation of this module makes
this correspondance clear.
Required Methods
fn reflect(&self) -> T
Implementors
impl Reflect<DCG> for DCG
impl Reflect<Vec<Succ>> for Vec<Succ>
impl Reflect<Vec<Succ>> for Vec<(Succ, Option<Rc<Box<DCGDep>>>)>
impl Reflect<Vec<Pred>> for Vec<Pred>
impl Reflect<Vec<Loc>> for Vec<Rc<Loc>>
impl<S, T: Reflect<S> + Debug> Reflect<Option<S>> for Option<T>
impl<'a, S, T: Reflect<S> + Debug> Reflect<S> for &'a Rc<T>
impl<'a, S, T: Reflect<S> + Debug> Reflect<S> for Rc<T>
impl Reflect<Succ> for Succ