referrerpolicy=no-referrer-when-downgrade

Trait polkadot_service::runtime_traits::Lookup

source ·
pub trait Lookup {
    type Source;
    type Target;

    // Required method
    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.

Required Associated Types§

source

type Source

Type to lookup from.

source

type Target

Type to lookup into.

Required Methods§

source

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

Attempt a lookup.

Implementations on Foreign Types§

source§

impl<T> Lookup for ChainContext<T>
where T: Config,

Implementors§

source§

impl<T> Lookup for IdentityLookup<T>

§

type Source = T

§

type Target = T