pub trait Cast<T> {
// Required method
fn cast(self) -> T;
}Expand description
A trait for types that can be cast to another type.
This trait provides a method to convert a value of one type into a value of another type. The conversion is typically lossless, but this is not guaranteed for all implementations.