Skip to main content

HasElementType

Trait HasElementType 

Source
pub trait HasElementType: Type {
    // Required method
    fn element_type(&self, ctx: &Context) -> Option<TypeHandle>;

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

Required Methods§

Provided Methods§

Source

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

Trait Implementations§

Source§

impl TypeImplsInterface<dyn HasElementType> for MatrixType

Source§

impl TypeImplsInterface<dyn HasElementType> for IntegerType

Source§

impl TypeImplsInterface<dyn HasElementType> for IndexType

Source§

impl TypeImplsInterface<dyn HasElementType> for Complex32Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Complex64Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float64Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float32Type

Source§

impl TypeImplsInterface<dyn HasElementType> for TFloat32Type

Source§

impl TypeImplsInterface<dyn HasElementType> for FloatFlex32Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float16Type

Source§

impl TypeImplsInterface<dyn HasElementType> for BFloat16Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float8E8M0Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float8E5M2Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float8E4M3Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float6E3M2Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float6E2M3Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float4E2M1Type

Source§

impl TypeImplsInterface<dyn HasElementType> for Float4E2M1x2Type

Source§

impl TypeImplsInterface<dyn HasElementType> for BoolType

Source§

impl TypeImplsInterface<dyn HasElementType> for VectorType

Source§

impl TypeImplsInterface<dyn HasElementType> for AtomicType

Source§

impl TypeImplsInterface<dyn HasElementType> for PointerType

Source§

impl TypeImplsInterface<dyn HasElementType> for ArrayType

Source§

impl TypeImplsInterface<dyn HasElementType> for RuntimeArrayType

Source§

impl TypeInterfaceMarker for dyn HasElementType

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HasElementType for IntegerType

Implementors§