Skip to main content

AlignedType

Trait AlignedType 

Source
pub trait AlignedType: Type {
    // Required method
    fn align(&self, ctx: &Context) -> usize;

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

Required Methods§

Source

fn align(&self, ctx: &Context) -> usize

Provided Methods§

Source

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

Trait Implementations§

Source§

impl TypeImplsInterface<dyn AlignedType> for BarrierType

Source§

impl TypeImplsInterface<dyn AlignedType> for BarrierTokenType

Source§

impl TypeImplsInterface<dyn AlignedType> for TensorMapType

Source§

impl TypeImplsInterface<dyn AlignedType> for MatrixType

Source§

impl TypeImplsInterface<dyn AlignedType> for IntegerType

Source§

impl TypeImplsInterface<dyn AlignedType> for IndexType

Source§

impl TypeImplsInterface<dyn AlignedType> for Complex32Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Complex64Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float64Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float32Type

Source§

impl TypeImplsInterface<dyn AlignedType> for TFloat32Type

Source§

impl TypeImplsInterface<dyn AlignedType> for FloatFlex32Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float16Type

Source§

impl TypeImplsInterface<dyn AlignedType> for BFloat16Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float8E8M0Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float6E3M2Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float6E2M3Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float4E2M1Type

Source§

impl TypeImplsInterface<dyn AlignedType> for Float4E2M1x2Type

Source§

impl TypeImplsInterface<dyn AlignedType> for BoolType

Source§

impl TypeImplsInterface<dyn AlignedType> for TensorLayoutType

Source§

impl TypeImplsInterface<dyn AlignedType> for TensorViewType

Source§

impl TypeImplsInterface<dyn AlignedType> for VectorType

Source§

impl TypeImplsInterface<dyn AlignedType> for AtomicType

Source§

impl TypeImplsInterface<dyn AlignedType> for PointerType

Source§

impl TypeImplsInterface<dyn AlignedType> for ArrayType

Source§

impl TypeImplsInterface<dyn AlignedType> for BytesType

Source§

impl TypeImplsInterface<dyn AlignedType> for RuntimeArrayType

Source§

impl TypeInterfaceMarker for dyn AlignedType

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl AlignedType for IntegerType

Source§

fn align(&self, _ctx: &Context) -> usize

Implementors§