Trait polkadot_sdk_frame::traits::Lookup
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§
Required Methods§
fn lookup(&self, s: Self::Source) -> Result<Self::Target, LookupError>
fn lookup(&self, s: Self::Source) -> Result<Self::Target, LookupError>
Attempt a lookup.