Skip to main content

TypeToCPP

Trait TypeToCPP 

Source
pub trait TypeToCPP<T>: Type {
    // Required method
    fn to_cpp(&self, ctx: &Context) -> String;

    // Provided method
    fn verify(_op: &dyn Type, _ctx: &Context) -> Result<()>
       where Self: Sized { ... }
}

Required Methods§

Source

fn to_cpp(&self, ctx: &Context) -> String

Provided Methods§

Source

fn verify(_op: &dyn Type, _ctx: &Context) -> Result<()>
where Self: Sized,

Trait Implementations§

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for MatrixType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for TensorMapType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for BarrierType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for BarrierTokenType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for PointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for UniformPointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Complex32Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Complex64Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for TFloat32Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float16x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for BFloat16x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E4M3x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E5M2x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E8M0x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float6E3M2x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float6E2M3x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float4E2M1x2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for BFloat16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float8E8M0Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float6E3M2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float6E2M3Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Cuda>> for Float4E2M1Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for MatrixType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for Float16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for BFloat16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for PointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Hip>> for UniformPointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for MatrixType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for Float16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for BFloat16Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for PointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for UniformPointerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Metal>> for AtomicType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for VectorType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for AtomicType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for RuntimeArrayType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for ArrayType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for UnitType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for IntegerType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for BoolType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for FloatFlex32Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for Float32Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for Float64Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for IndexType

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for Uvec3Type

Source§

impl TypeImplsInterface<dyn TypeToCPP<Shared>> for InfoStructType

Source§

impl<T> TypeInterfaceMarker for dyn TypeToCPP<T>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TypeToCPP<Cuda> for BFloat16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for BarrierTokenType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for BarrierType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Complex32Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Complex64Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float4E2M1Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float4E2M1x2Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float6E2M3Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float6E3M2Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float8E4M3Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float8E5M2Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float8E8M0Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for Float16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for MatrixType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for PointerType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for TFloat32Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Cuda> for TensorMapType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for BFloat16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for Float8E4M3Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for Float8E5M2Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for Float16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for MatrixType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Hip> for PointerType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for AtomicType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for BFloat16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for Float8E4M3Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for Float8E5M2Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for Float16Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for MatrixType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Metal> for PointerType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for ArrayType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for AtomicType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for BoolType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for Float32Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for Float64Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for FloatFlex32Type

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for IndexType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for IntegerType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for RuntimeArrayType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for UnitType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Source§

impl TypeToCPP<Shared> for VectorType

Source§

fn to_cpp(&self, ctx: &Context) -> String

Implementors§