Trait gclient::ext::sp_runtime::app_crypto::Wraps

pub trait Wraps: Sized {
    type Inner: IsWrappedBy<Self>;

    // Provided method
    fn as_inner_ref(&self) -> &Self::Inner { ... }
}
Expand description

Opposite of IsWrappedBy - denotes a type which is a simple wrapper around another type.

Required Associated Types§

type Inner: IsWrappedBy<Self>

The inner type it is wrapping.

Provided Methods§

fn as_inner_ref(&self) -> &Self::Inner

Get a reference to the inner type that is wrapped.

Object Safety§

This trait is not object safe.

Implementors§

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPair

§

type Inner = Pair

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ecdsa::AppPublic

§

type Inner = CryptoBytes<sp_core::::ecdsa::Public::{constant#0}, (PublicTag, EcdsaTag)>

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ecdsa::AppSignature

§

type Inner = CryptoBytes<sp_core::::ecdsa::Signature::{constant#0}, (SignatureTag, EcdsaTag)>

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ed25519::AppPair

§

type Inner = Pair

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ed25519::AppPublic

§

type Inner = CryptoBytes<sp_core::::ed25519::Public::{constant#0}, (PublicTag, Ed25519Tag)>

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::ed25519::AppSignature

§

type Inner = CryptoBytes<sp_core::::ed25519::Signature::{constant#0}, (SignatureTag, Ed25519Tag)>

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::sr25519::AppPair

§

type Inner = Pair

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::sr25519::AppPublic

§

type Inner = CryptoBytes<sp_core::::sr25519::Public::{constant#0}, Sr25519PublicTag>

§

impl Wraps for gclient::ext::sp_runtime::app_crypto::sr25519::AppSignature

§

type Inner = CryptoBytes<sp_core::::sr25519::Signature::{constant#0}, (SignatureTag, Sr25519Tag)>