pub trait UncheckedFrom<T> {
    // Required method
    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§

source

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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl UncheckedFrom<H256> for sp_core::ed25519::Public

source§

impl UncheckedFrom<H256> for sp_core::sr25519::Public

source§

impl UncheckedFrom<H256> for AccountId32

source§

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

source§

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

source§

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

source§

impl UncheckedFrom<[u8; 64]> for sp_core::ed25519::Signature

source§

impl UncheckedFrom<[u8; 64]> for sp_core::sr25519::Signature

source§

impl UncheckedFrom<[u8; 65]> for sp_core::ecdsa::Signature

source§

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

source§

impl<const LEFT_PLUS_RIGHT_LEN: usize> UncheckedFrom<[u8; LEFT_PLUS_RIGHT_LEN]> for sp_core::paired_crypto::Public<LEFT_PLUS_RIGHT_LEN>

source§

impl<const LEFT_PLUS_RIGHT_LEN: usize> UncheckedFrom<[u8; LEFT_PLUS_RIGHT_LEN]> for sp_core::paired_crypto::Signature<LEFT_PLUS_RIGHT_LEN>