[][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

Type to lookup from.

type Target

Type to lookup into.

Loading content...

Required methods

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

Attempt a lookup.

Loading content...

Implementors

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

type Source = T

type Target = T

Loading content...