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§

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§

§

impl UncheckedFrom<H256> for AccountId32

§

impl UncheckedFrom<H256> for gclient::ext::sp_runtime::app_crypto::ed25519::Public

§

impl UncheckedFrom<H256> for gclient::ext::sp_runtime::app_crypto::sr25519::Public

§

impl UncheckedFrom<[u8; 32]> for gclient::ext::sp_runtime::app_crypto::ed25519::Public

§

impl UncheckedFrom<[u8; 32]> for gclient::ext::sp_runtime::app_crypto::sr25519::Public

§

impl UncheckedFrom<[u8; 33]> for gclient::ext::sp_runtime::app_crypto::ecdsa::Public

§

impl UncheckedFrom<[u8; 64]> for gclient::ext::sp_runtime::app_crypto::ed25519::Signature

§

impl UncheckedFrom<[u8; 64]> for gclient::ext::sp_runtime::app_crypto::sr25519::Signature

§

impl UncheckedFrom<[u8; 65]> for gclient::ext::sp_runtime::app_crypto::ecdsa::Signature

§

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

§

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

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