Trait bow::ToBox [] [src]

pub trait ToBox {
    fn to_box(&self) -> Box<Self>;
}

Like ToOwned, boxing types instead of converting them into different types altogether.

Required Methods

Creates a boxed version from borrowed data, usually by cloning.

Implementors