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