Trait pallet_contracts::chain_extension::UncheckedFrom [−][src]
pub trait UncheckedFrom<T> { fn unchecked_from(t: T) -> Self; }
Expand description
Similar to From
, except that the onus is on the part of the caller to ensure
that data passed in makes sense. Basically, you’re not guaranteed to get anything
sensible out.
Required methods
fn unchecked_from(t: T) -> Self
fn unchecked_from(t: T) -> Self
Convert from an instance of T
to Self. This is not guaranteed to be
whatever counts as a valid instance of T
and it’s up to the caller to
ensure that it makes sense.
Implementations on Foreign Types
NOTE: This implementations is required by SimpleAddressDeterminer
,
we convert the hash into some AccountId, it’s fine to use any scheme.
Implementors
impl<Inner, Outer, T> UncheckedFrom<T> for Outer where
Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
Outer: Wraps<Inner = Inner>,