Wrapper

Trait Wrapper 

Source
pub trait Wrapper: From<Self::Wrapped> {
    type Wrapped;

    // Required methods
    fn dewrap(&self) -> &Self::Wrapped;
    fn dewrap_into(self) -> Self::Wrapped
       where Self: Sized;
}

Required Associated Types§

Required Methods§

Source

fn dewrap(&self) -> &Self::Wrapped

Source

fn dewrap_into(self) -> Self::Wrapped
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§