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

One type is wrapped by another.

Required methods

Get a reference to the inner from the outer.

Get a mutable reference to the inner from the outer.

Implementors