Skip to main content

Wrapper

Trait Wrapper 

Source
pub trait Wrapper {
    type Content;

    // Required method
    fn wrap(t: Self::Content) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn wrap(t: Self::Content) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§