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