[][src]Trait sp_runtime::traits::Lookup

pub trait Lookup {
    type Source;
    type Target;
    pub 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

pub 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...