Skip to main content

ScalarType

Trait ScalarType 

Source
pub trait ScalarType: Type {
    // Required method
    fn elem_type(&self, ctx: &Context) -> ElemType;

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

Required Methods§

Source

fn elem_type(&self, ctx: &Context) -> ElemType

Provided Methods§

Source

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

Trait Implementations§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ScalarType for IntegerType

Source§

fn elem_type(&self, _ctx: &Context) -> ElemType

Implementors§