Wrap

Trait Wrap 

Source
pub trait Wrap {
    type Wrap<T>: Borrow<T>;
}
Expand description

A Wrap implementation provides a type constructor which “wraps” a type.

Required Associated Types§

Source

type Wrap<T>: Borrow<T>

Wrap T.

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§

Source§

impl Wrap for NoWrap

Source§

type Wrap<T> = T