linera_base::dyn_convert

Trait DynInto

Source
pub trait DynInto<To> {
    // Required method
    fn into_box(self: Box<Self>) -> To;
}
Expand description

An object-safe version of std::convert::Into.

Required Methods§

Source

fn into_box(self: Box<Self>) -> To

Converts a boxed object into the target type.

Implementors§

Source§

impl<To, From: Into<To>> DynInto<To> for From