Skip to main content

RequiresIncludesType

Trait RequiresIncludesType 

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

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

Required Methods§

Source

fn includes(&self, ctx: &Context) -> Vec<String>

Provided Methods§

Source

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

Trait Implementations§

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for PointerType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for ArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for RuntimeArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for VectorType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for BarrierType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Complex32Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Complex64Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for MatrixType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for TFloat32Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float16Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float16x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for BFloat16Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for BFloat16x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E8M0Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E4M3x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E5M2x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float8E8M0x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float6E3M2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float6E2M3Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float6E3M2x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float6E2M3x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float4E2M1Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Cuda>> for Float4E2M1x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for PointerType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for ArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for RuntimeArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for VectorType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for MatrixType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for BFloat16Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Hip>> for BFloat16x2Type

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Metal>> for PointerType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Metal>> for ArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Metal>> for RuntimeArrayType

Source§

impl TypeImplsInterface<dyn RequiresIncludesType<Metal>> for VectorType

Source§

impl<T> TypeInterfaceMarker for dyn RequiresIncludesType<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 RequiresIncludesType<Cuda> for ArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for BFloat16Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for BarrierType

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Complex32Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Complex64Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float4E2M1Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float4E2M1x2Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float6E2M3Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float6E3M2Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float8E4M3Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float8E5M2Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float8E8M0Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for Float16Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for MatrixType

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for PointerType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for RuntimeArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for TFloat32Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Cuda> for VectorType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for ArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for BFloat16Type

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for MatrixType

Source§

fn includes(&self, _ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for PointerType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for RuntimeArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Hip> for VectorType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Metal> for ArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Metal> for PointerType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Metal> for RuntimeArrayType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Source§

impl RequiresIncludesType<Metal> for VectorType

Source§

fn includes(&self, ctx: &Context) -> Vec<String>

Implementors§