Trait tp_runtime::traits::Lookup[][src]

pub trait Lookup {
    type Source;
    type Target;
    fn lookup(&self, s: Self::Source) -> Result<Self::Target, LookupError>;
}

Means of changing one type into another in a manner dependent on the source type.

Associated Types

type Source[src]

Type to lookup from.

type Target[src]

Type to lookup into.

Loading content...

Required methods

fn lookup(&self, s: Self::Source) -> Result<Self::Target, LookupError>[src]

Attempt a lookup.

Loading content...

Implementors

impl<T> Lookup for IdentityLookup<T>[src]

type Source = T

type Target = T

Loading content...