DimType

Trait DimType 

Source
pub trait DimType {
    const DIM_ID: u8;
    const MLIR_DIM: &str;
}

Required Associated Constants§

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.

Implementors§

Source§

impl DimType for DimX

Source§

const DIM_ID: u8 = 0u8

Source§

const MLIR_DIM: &'static str = "#gpu<dim x>"

Source§

impl DimType for DimY

Source§

const DIM_ID: u8 = 1u8

Source§

const MLIR_DIM: &'static str = "#gpu<dim y>"

Source§

impl DimType for DimZ

Source§

const DIM_ID: u8 = 2u8

Source§

const MLIR_DIM: &'static str = "#gpu<dim z>"