pub trait CastIntoComposite<T> {
type Output;
// Required method
fn cast_into_composite(self) -> Self::Output;
}Expand description
Might lose some precision.
Same semantics as the as keyword: 4f32 as u64
The Output type can be a little bit different, but still related to the generic type :
use hexga_math::prelude::*;
use std::any::{TypeId};
assert_eq!(TypeId::of::<<[u8;1] as CastIntoComposite<u16>>::Output>(), TypeId::of::<[u16;1]>())Required Associated Types§
Required Methods§
Sourcefn cast_into_composite(self) -> Self::Output
fn cast_into_composite(self) -> Self::Output
Might lose some precision.
Same semantics as the as keyword: 4f32 as u64