pub trait Cast<T = Self> {
// Required method
fn cast(&self) -> T;
}Expand description
Unary operator for casting values of one type to another.
pub trait Cast<T = Self> {
// Required method
fn cast(&self) -> T;
}Unary operator for casting values of one type to another.