Trait sp_core::crypto::Wraps

source ·
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§

source

type Inner: IsWrappedBy<Self>

The inner type it is wrapping.

Provided Methods§

source

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

Get a reference to the inner type that is wrapped.

Implementors§

impl Wraps for Public

impl Wraps for Public

impl Wraps for Pair

impl Wraps for Signature

impl Wraps for Pair

impl Wraps for Signature

impl Wraps for Pair

impl Wraps for Public

impl Wraps for Signature

impl Wraps for Pair

impl Wraps for Public

impl Wraps for Signature