Trait noble_contracts::chain_extension::UncheckedFrom[][src]

pub trait UncheckedFrom<T> {
    pub fn unchecked_from(t: T) -> Self;
}

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.

Loading content...

Implementations on Foreign Types

impl<T> UncheckedFrom<T> for MultiSigner where
    T: Into<H256>, 
[src]

NOTE: This implementations is required by SimpleAddressDeterminer, we convert the hash into some AccountId, it’s fine to use any scheme.

impl UncheckedFrom<H256> for Public[src]

impl UncheckedFrom<[u8; 32]> for Public[src]

impl UncheckedFrom<[u8; 32]> for Public[src]

impl UncheckedFrom<H256> for AccountId32[src]

impl UncheckedFrom<[u8; 33]> for Public[src]

impl UncheckedFrom<H256> for Public[src]

Loading content...

Implementors

impl<Inner, Outer, T> UncheckedFrom<T> for Outer where
    Inner: IsWrappedBy<Outer> + UncheckedFrom<T>,
    Outer: Wraps<Inner = Inner>, 
[src]

Loading content...