jxl_modular

Trait 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§

Source

fn from_i32(value: i32) -> Self

Source

fn from_u32(value: u32) -> Self

Source

fn to_i32(self) -> i32

Source

fn to_i64(self) -> i64

Source

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.

Implementations on Foreign Types§

Source§

impl Sample for i16

Source§

fn from_i32(value: i32) -> Self

Source§

fn from_u32(value: u32) -> Self

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_f32(self) -> f32

Source§

impl Sample for i32

Source§

fn from_i32(value: i32) -> Self

Source§

fn from_u32(value: u32) -> Self

Source§

fn to_i32(self) -> i32

Source§

fn to_i64(self) -> i64

Source§

fn to_f32(self) -> f32

Implementors§