Trait re_types::image::ImageChannelType

source ·
pub trait ImageChannelType: Pod {
    const CHANNEL_TYPE: ChannelDatatype;
}
Expand description

Types that implement this can be used as image channel types.

Implemented for u8, u16, u32, u64, i8, i16, i32, i64, f16, f32, f64.

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ImageChannelType for f32

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::F32

source§

impl ImageChannelType for f64

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::F64

source§

impl ImageChannelType for i8

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::I8

source§

impl ImageChannelType for i16

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::I16

source§

impl ImageChannelType for i32

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::I32

source§

impl ImageChannelType for i64

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::I64

source§

impl ImageChannelType for u8

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::U8

source§

impl ImageChannelType for u16

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::U16

source§

impl ImageChannelType for u32

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::U32

source§

impl ImageChannelType for u64

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::U64

source§

impl ImageChannelType for f16

source§

const CHANNEL_TYPE: ChannelDatatype = ChannelDatatype::F16

Implementors§