Trait jxl_modular::Sample
source · 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
Object Safety§
This trait is not object safe.