mz_ore::cast

Trait CastInto

Source
pub trait CastInto<T> {
    // Required method
    fn cast_into(self) -> T;
}
Expand description

The inverse of CastFrom. Implemented automatically, just like std::convert::Into.

Required Methods§

Source

fn cast_into(self) -> T

Performs the cast.

Implementors§

Source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,