pub trait BinMiniOp: Debug + DynClone + Send + Sync + 'static + Downcast + DynHash {
Show 14 methods fn name(&self) -> &'static str; fn result_datum_type(
        &self,
        a: DatumType,
        b: DatumType
    ) -> Result<DatumType, Error>; fn eval_unicast_in_place(
        &self,
        a: &Tensor,
        b: &mut Tensor
    ) -> Result<(), Error>; fn eval_uniform_in_place(
        &self,
        a: &Tensor,
        b: &mut Tensor
    ) -> Result<(), Error>; fn eval_in_a(&self, a: &mut Tensor, b: &Tensor) -> Result<(), Error>; fn eval_out_of_place(
        &self,
        c: &mut Tensor,
        a: &Tensor,
        b: &Tensor
    ) -> Result<(), Error>; fn validation(&self) -> Validation { ... } fn operating_datum_type(
        &self,
        a: DatumType,
        b: DatumType
    ) -> Result<DatumType, Error> { ... } fn generic_eval(&self, a: TValue, b: TValue) -> Result<Tensor, Error> { ... } fn eval(&self, a: TValue, b: TValue) -> Result<Tensor, Error> { ... } fn declutter(
        &self,
        model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
        node: &Node<TypedFact, Box<dyn TypedOp + 'static, Global>>
    ) -> Result<Option<ModelPatch<TypedFact, Box<dyn TypedOp + 'static, Global>>>, Error> { ... } fn codegen(
        &self,
        model: &Graph<TypedFact, Box<dyn TypedOp + 'static, Global>>,
        node: &Node<TypedFact, Box<dyn TypedOp + 'static, Global>>
    ) -> Result<Option<ModelPatch<TypedFact, Box<dyn TypedOp + 'static, Global>>>, Error> { ... } fn cost_per_element(&self, dt: DatumType) -> SmallVec<[(Cost, usize); 4]> { ... } fn as_linalg_binop(&self) -> Option<BinOp> { ... }
}

Required Methods§

Provided Methods§

Implementations§

Returns true if the trait object wraps an object of type __T.

Returns a boxed object from a boxed trait object if the underlying object is of type __T. Returns the original boxed trait if it isn’t.

Returns an Rc-ed object from an Rc-ed trait object if the underlying object is of type __T. Returns the original Rc-ed trait if it isn’t.

Returns a reference to the object within the trait object if it is of type __T, or None if it isn’t.

Returns a mutable reference to the object within the trait object if it is of type __T, or None if it isn’t.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more

Implementors§