stdx::anymap

Trait IntoBox

source
pub trait IntoBox<A: ?Sized + Downcast>: Any {
    // Required method
    fn into_box(self) -> Box<A>;
}
Expand description

A trait for the conversion of an object into a boxed trait object.

Required Methods§

source

fn into_box(self) -> Box<A>

Convert self into the appropriate boxed form.

Implementors§

source§

impl<T: Any + Send + Sync> IntoBox<dyn Any + Sync + Send> for T

source§

impl<T: Any + Send> IntoBox<dyn Any + Send> for T

source§

impl<T: Any> IntoBox<dyn Any> for T