pub trait Cast {
    fn cast<T>(self) -> T
    where
        T: TryFrom<Self>,
        Self: Sized + Display + Copy
, { ... } }
Expand description

A type cast trait used to replace as conversion.

Provided methods

Performs the conversion.

Implementors