pub trait PTypeDowncast {
type Output<T: NativePType>;
// Required methods
fn into_u8(self) -> Self::Output<u8>;
fn into_u16(self) -> Self::Output<u16>;
fn into_u32(self) -> Self::Output<u32>;
fn into_u64(self) -> Self::Output<u64>;
fn into_i8(self) -> Self::Output<i8>;
fn into_i16(self) -> Self::Output<i16>;
fn into_i32(self) -> Self::Output<i32>;
fn into_i64(self) -> Self::Output<i64>;
fn into_f16(self) -> Self::Output<f16>;
fn into_f32(self) -> Self::Output<f32>;
fn into_f64(self) -> Self::Output<f64>;
}Expand description
A visitor trait for converting a NativePType to another parameterized type.
Required Associated Types§
type Output<T: NativePType>
Required Methods§
fn into_u8(self) -> Self::Output<u8>
fn into_u16(self) -> Self::Output<u16>
fn into_u32(self) -> Self::Output<u32>
fn into_u64(self) -> Self::Output<u64>
fn into_i8(self) -> Self::Output<i8>
fn into_i16(self) -> Self::Output<i16>
fn into_i32(self) -> Self::Output<i32>
fn into_i64(self) -> Self::Output<i64>
fn into_f16(self) -> Self::Output<f16>
fn into_f32(self) -> Self::Output<f32>
fn into_f64(self) -> Self::Output<f64>
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.