[][src]Trait sp_core::crypto::IsWrappedBy

pub trait IsWrappedBy<Outer>: From<Outer> + Into<Outer> {
    pub fn from_ref(outer: &Outer) -> &Self;
pub fn from_mut(outer: &mut Outer) -> &mut Self; }

One type is wrapped by another.

Required methods

pub fn from_ref(outer: &Outer) -> &Self[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut Self[src]

Get a mutable reference to the inner from the outer.

Loading content...

Implementors

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<Self> + AsMut<Self> + From<Self>,
    T: From<Outer>, 
[src]

pub fn from_ref(outer: &Outer) -> &Self[src]

Get a reference to the inner from the outer.

pub fn from_mut(outer: &mut Outer) -> &mut Self[src]

Get a mutable reference to the inner from the outer.

Loading content...