pub trait Cast {
type Output;
// Required methods
fn cast_u8(x: u8) -> Self::Output;
fn cast_u16(x: u16) -> Self::Output;
fn cast_u32(x: u32) -> Self::Output;
}Available on crate feature
utils only.Expand description
Trait for types which describe casting behaviour.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.