[][src]Trait sp_core::crypto::UncheckedFrom

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...

Implementors

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

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

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

impl UncheckedFrom<H256> for AccountId32[src]

impl UncheckedFrom<H256> for sp_core::ed25519::Public[src]

impl UncheckedFrom<H256> for sp_core::sr25519::Public[src]

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

Loading content...