Skip to main content

PackableOp

Trait PackableOp 

Source
pub trait PackableOp: Op + OneResultInterface {
    // Required method
    fn should_pack(&self, ctx: &Context) -> bool;

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

Required Methods§

Source

fn should_pack(&self, ctx: &Context) -> bool

Provided Methods§

Source

fn verify(_op: &dyn Op, _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 PackableOp for AtomicFAddOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for AtomicFMaxOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for AtomicFMinOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for BroadcastOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for CastOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for CeilOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for CosOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for ExpOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FAbsOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FClampOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FMaxOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FMinOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FModFloorOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FNegOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for FloorOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for LogOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for RoundOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for RsqrtOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for ShuffleDownOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for ShuffleOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for ShuffleUpOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for ShuffleXorOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for SinOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for SqrtOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for TanhOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Source§

impl PackableOp for TruncOp

Source§

fn should_pack(&self, ctx: &Context) -> bool

Implementors§