Skip to main content

MaybeVectorizedType

Trait MaybeVectorizedType 

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

    // Provided methods
    fn verify(_op: &dyn Type, _ctx: &Context) -> Result<()>
       where Self: Sized { ... }
    fn try_vector_size(&self, ctx: &Context) -> Option<usize> { ... }
}

Required Methods§

Source

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

Provided Methods§

Source

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

Source

fn try_vector_size(&self, ctx: &Context) -> Option<usize>

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§