Trait noble_contracts::chain_extension::UncheckedFrom [−][src]
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
pub fn unchecked_from(t: T) -> Self
[src]
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
impl<T> UncheckedFrom<T> for MultiSigner where
T: Into<H256>,
[src]
T: Into<H256>,
NOTE: This implementations is required by SimpleAddressDeterminer
,
we convert the hash into some AccountId, it’s fine to use any scheme.
pub fn unchecked_from(x: T) -> MultiSigner
[src]
impl UncheckedFrom<H256> for Public
[src]
pub fn unchecked_from(x: H256) -> Public
[src]
impl UncheckedFrom<[u8; 32]> for Public
[src]
impl UncheckedFrom<[u8; 32]> for Public
[src]
impl UncheckedFrom<H256> for AccountId32
[src]
pub fn unchecked_from(h: H256) -> AccountId32
[src]
impl UncheckedFrom<[u8; 33]> for Public
[src]
impl UncheckedFrom<H256> for Public
[src]
pub fn unchecked_from(x: H256) -> Public
[src]
Implementors
impl<Inner, Outer, T> UncheckedFrom<T> for Outer where
Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
Outer: Wraps<Inner = Inner>,
[src]
Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
Outer: Wraps<Inner = Inner>,