Wraps

Trait Wraps 

Source
pub trait Wraps: Sized {
    type Inner: IsWrappedBy<Self>;
}
Expand description

Opposite of IsWrappedBy - denotes a type which is a simple wrapper around another type.

Required Associated Types§

Source

type Inner: IsWrappedBy<Self>

The inner type it is wrapping.

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§