Trait CloneIntoBoxExt

Source
pub trait CloneIntoBoxExt: CloneIntoBox {
    // Provided method
    fn clone_into_box(&self) -> Box<Self> { ... }
}
Expand description

An extension trait for cloning trait objects into Boxes.

§Examples

See crate documentation for examples.

Provided Methods§

Source

fn clone_into_box(&self) -> Box<Self>

Clone the provided value into a Box-allocated space.

§Examples

See crate documentation for examples.

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§