pub trait Cast {
type Output;
fn cast_u8(x: u8) -> Self::Output;
fn cast_u16(x: u16) -> Self::Output;
fn cast_u32(x: u32) -> Self::Output;
}
This is supported on crate feature
utils
only.Expand description
Trait for types which describe casting behaviour.