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

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

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

Associated Types

Type to lookup from.

Type to lookup into.

Required methods

Attempt a lookup.

Implementors