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

Object Safety§

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§