pub trait PseudoEncryptable: Copy {
type HalfBitType: Copy;
const HALF_BIT_SIZE: usize;
const HALF_BIT_MAX: Self::HalfBitType;
// Required methods
fn cast_from_i32(f: i32) -> Self;
fn cast_from_f32(f: f32) -> Self;
fn cast_to_f32(f: Self) -> f32;
}
Required Associated Constants§
const HALF_BIT_SIZE: usize
const HALF_BIT_MAX: Self::HalfBitType
Required Associated Types§
type HalfBitType: Copy
Required Methods§
fn cast_from_i32(f: i32) -> Self
fn cast_from_f32(f: f32) -> Self
fn cast_to_f32(f: Self) -> f32
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.