Trait Wrap
Source pub trait Wrap {
type Wrap<'a, T: ?Sized + 'a>;
}
Expand description
Generic reference type wrappers
This is a generalized version of WrapRef that doesn’t require Deref, so you can use
wrappers that may not have the type they’re wrapping.
If your wrapper type implements Deref, you should implement the WrapRef trait instead,
and you’ll get a Wrap impl for free.
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".