pub trait Sample:
Copy
+ Default
+ Send
+ Sync
+ Sealed
+ 'static {
// Required methods
fn from_i32(value: i32) -> Self;
fn from_u32(value: u32) -> Self;
fn to_i32(self) -> i32;
fn to_i64(self) -> i64;
fn to_f32(self) -> f32;
}
Expand description
Type of Modular image samples.
Currently i32
and i16
implements Sample
.
Required Methods§
fn from_i32(value: i32) -> Self
fn from_u32(value: u32) -> Self
fn to_i32(self) -> i32
fn to_i64(self) -> i64
fn to_f32(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.