pub trait CastInto<T> {
// Required method
fn cast_into(self) -> T;
}Expand description
Like [Into], but supporting target-specific casts.
See CastFrom’s docs for more information.
Like [Into], CastInto only supports lossless casts.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".