Trait exr::image::IntoSample

source ·
pub trait IntoSample: IntoNativeSample {
    const PREFERRED_SAMPLE_TYPE: SampleType;
}
Expand description

Convert this type into one of the known sample types. Also specify the preferred native type, which dictates the default sample type in the image.

Required Associated Constants§

source

const PREFERRED_SAMPLE_TYPE: SampleType

The native sample types that this type should be converted to.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoSample for f32

source§

const PREFERRED_SAMPLE_TYPE: SampleType = SampleType::F32

source§

impl IntoSample for u32

source§

const PREFERRED_SAMPLE_TYPE: SampleType = SampleType::U32

Implementors§