Skip to main content

Expr

Struct Expr 

Source
pub struct Expr { /* private fields */ }
Expand description

The base of every expression: its source location loc and its type ty.

The type may be a MissingType while the expression is under construction. Each kind of expression is a subtype that adds its operands. PrimExpr and IntExpr are expressions checked to have a primitive or an integer type.

Implementations§

Source§

impl Expr

Source

pub fn subscript( &self, indices: impl IntoIterator<Item = Subscript>, loc: impl IntoArg<Location>, ) -> Result<Any>

Return self[indices], as the subscript rule of its type realizes it: a TupleGetItem of a tuple, a TensorLoad or TensorRegion of a tensor (ir.SubscriptExprRealize).

§Errors

Returns a TypeError if the type of the expression has no subscript rule, or the error the rule raises.

Trait Implementations§

Source§

impl AsRef<Expr> for Add

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for And

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for BaseFunc

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for BitwiseAnd

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for BitwiseNot

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for BitwiseOr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for BitwiseXor

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Broadcast

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Call

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Cast

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Constant

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for DataTypeImm

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Div

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for EQ

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Expr

Source§

fn as_ref(&self) -> &Self

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for FloatImm

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for FloorDiv

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for FloorMod

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Function

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for GE

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for GT

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for GenericConst

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for GlobalVar

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for IntExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for IntImm

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for IterMapExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for IterSplitExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for IterSumExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for LE

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for LShift

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for LT

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for LambdaExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Let

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Max

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Min

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Mod

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Mul

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for NE

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Not

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Op

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for OpaqueExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Or

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for PrimExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for PrimVar

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for RShift

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Ramp

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Select

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Shuffle

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for StagingExpr

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for StringImm

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Sub

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for TensorLoad

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for TensorRegion

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Tuple

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for TupleGetItem

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<Expr> for Var

Source§

fn as_ref(&self) -> &Expr

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl AsRef<ObjectRef> for Expr

Source§

fn as_ref(&self) -> &ObjectRef

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Clone for Expr

Source§

fn clone(&self) -> Expr

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Expr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Expr

Source§

type Target = ExprObj

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Display for Expr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl DowncastRefFromAny for Expr

Source§

unsafe fn downcast_ref_from_any(cell: &TVMFFIAny) -> Option<&Self>

Borrow cell as Self when it holds one. Read more
Source§

impl From<&Add> for Expr

Source§

fn from(value: &Add) -> Self

Converts to this type from the input type.
Source§

impl From<&And> for Expr

Source§

fn from(value: &And) -> Self

Converts to this type from the input type.
Source§

impl From<&BaseFunc> for Expr

Source§

fn from(value: &BaseFunc) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseAnd> for Expr

Source§

fn from(value: &BitwiseAnd) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseNot> for Expr

Source§

fn from(value: &BitwiseNot) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseOr> for Expr

Source§

fn from(value: &BitwiseOr) -> Self

Converts to this type from the input type.
Source§

impl From<&BitwiseXor> for Expr

Source§

fn from(value: &BitwiseXor) -> Self

Converts to this type from the input type.
Source§

impl From<&Broadcast> for Expr

Source§

fn from(value: &Broadcast) -> Self

Converts to this type from the input type.
Source§

impl From<&Call> for Expr

Source§

fn from(value: &Call) -> Self

Converts to this type from the input type.
Source§

impl From<&Cast> for Expr

Source§

fn from(value: &Cast) -> Self

Converts to this type from the input type.
Source§

impl From<&Constant> for Expr

Source§

fn from(value: &Constant) -> Self

Converts to this type from the input type.
Source§

impl From<&DataTypeImm> for Expr

Source§

fn from(value: &DataTypeImm) -> Self

Converts to this type from the input type.
Source§

impl From<&Div> for Expr

Source§

fn from(value: &Div) -> Self

Converts to this type from the input type.
Source§

impl From<&EQ> for Expr

Source§

fn from(value: &EQ) -> Self

Converts to this type from the input type.
Source§

impl From<&Expr> for Expr

Source§

fn from(value: &Expr) -> Self

Converts to this type from the input type.
Source§

impl From<&Expr> for ObjectRef

Source§

fn from(value: &Expr) -> Self

Converts to this type from the input type.
Source§

impl From<&FloatImm> for Expr

Source§

fn from(value: &FloatImm) -> Self

Converts to this type from the input type.
Source§

impl From<&FloorDiv> for Expr

Source§

fn from(value: &FloorDiv) -> Self

Converts to this type from the input type.
Source§

impl From<&FloorMod> for Expr

Source§

fn from(value: &FloorMod) -> Self

Converts to this type from the input type.
Source§

impl From<&Function> for Expr

Source§

fn from(value: &Function) -> Self

Converts to this type from the input type.
Source§

impl From<&GE> for Expr

Source§

fn from(value: &GE) -> Self

Converts to this type from the input type.
Source§

impl From<&GT> for Expr

Source§

fn from(value: &GT) -> Self

Converts to this type from the input type.
Source§

impl From<&GenericConst> for Expr

Source§

fn from(value: &GenericConst) -> Self

Converts to this type from the input type.
Source§

impl From<&GlobalVar> for Expr

Source§

fn from(value: &GlobalVar) -> Self

Converts to this type from the input type.
Source§

impl From<&IntExpr> for Expr

Source§

fn from(value: &IntExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&IntImm> for Expr

Source§

fn from(value: &IntImm) -> Self

Converts to this type from the input type.
Source§

impl From<&IterMapExpr> for Expr

Source§

fn from(value: &IterMapExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&IterSplitExpr> for Expr

Source§

fn from(value: &IterSplitExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&IterSumExpr> for Expr

Source§

fn from(value: &IterSumExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&LE> for Expr

Source§

fn from(value: &LE) -> Self

Converts to this type from the input type.
Source§

impl From<&LShift> for Expr

Source§

fn from(value: &LShift) -> Self

Converts to this type from the input type.
Source§

impl From<&LT> for Expr

Source§

fn from(value: &LT) -> Self

Converts to this type from the input type.
Source§

impl From<&LambdaExpr> for Expr

Source§

fn from(value: &LambdaExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&Let> for Expr

Source§

fn from(value: &Let) -> Self

Converts to this type from the input type.
Source§

impl From<&Max> for Expr

Source§

fn from(value: &Max) -> Self

Converts to this type from the input type.
Source§

impl From<&Min> for Expr

Source§

fn from(value: &Min) -> Self

Converts to this type from the input type.
Source§

impl From<&Mod> for Expr

Source§

fn from(value: &Mod) -> Self

Converts to this type from the input type.
Source§

impl From<&Mul> for Expr

Source§

fn from(value: &Mul) -> Self

Converts to this type from the input type.
Source§

impl From<&NE> for Expr

Source§

fn from(value: &NE) -> Self

Converts to this type from the input type.
Source§

impl From<&Not> for Expr

Source§

fn from(value: &Not) -> Self

Converts to this type from the input type.
Source§

impl From<&Op> for Expr

Source§

fn from(value: &Op) -> Self

Converts to this type from the input type.
Source§

impl From<&OpaqueExpr> for Expr

Source§

fn from(value: &OpaqueExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&Or> for Expr

Source§

fn from(value: &Or) -> Self

Converts to this type from the input type.
Source§

impl From<&PrimExpr> for Expr

Source§

fn from(value: &PrimExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&PrimVar> for Expr

Source§

fn from(value: &PrimVar) -> Self

Converts to this type from the input type.
Source§

impl From<&RShift> for Expr

Source§

fn from(value: &RShift) -> Self

Converts to this type from the input type.
Source§

impl From<&Ramp> for Expr

Source§

fn from(value: &Ramp) -> Self

Converts to this type from the input type.
Source§

impl From<&Select> for Expr

Source§

fn from(value: &Select) -> Self

Converts to this type from the input type.
Source§

impl From<&Shuffle> for Expr

Source§

fn from(value: &Shuffle) -> Self

Converts to this type from the input type.
Source§

impl From<&StagingExpr> for Expr

Source§

fn from(value: &StagingExpr) -> Self

Converts to this type from the input type.
Source§

impl From<&StringImm> for Expr

Source§

fn from(value: &StringImm) -> Self

Converts to this type from the input type.
Source§

impl From<&Sub> for Expr

Source§

fn from(value: &Sub) -> Self

Converts to this type from the input type.
Source§

impl From<&TensorLoad> for Expr

Source§

fn from(value: &TensorLoad) -> Self

Converts to this type from the input type.
Source§

impl From<&TensorRegion> for Expr

Source§

fn from(value: &TensorRegion) -> Self

Converts to this type from the input type.
Source§

impl From<&Tuple> for Expr

Source§

fn from(value: &Tuple) -> Self

Converts to this type from the input type.
Source§

impl From<&TupleGetItem> for Expr

Source§

fn from(value: &TupleGetItem) -> Self

Converts to this type from the input type.
Source§

impl From<&Var> for Expr

Source§

fn from(value: &Var) -> Self

Converts to this type from the input type.
Source§

impl From<Add> for Expr

Source§

fn from(value: Add) -> Self

Converts to this type from the input type.
Source§

impl From<And> for Expr

Source§

fn from(value: And) -> Self

Converts to this type from the input type.
Source§

impl From<BaseFunc> for Expr

Source§

fn from(value: BaseFunc) -> Self

Converts to this type from the input type.
Source§

impl From<BitwiseAnd> for Expr

Source§

fn from(value: BitwiseAnd) -> Self

Converts to this type from the input type.
Source§

impl From<BitwiseNot> for Expr

Source§

fn from(value: BitwiseNot) -> Self

Converts to this type from the input type.
Source§

impl From<BitwiseOr> for Expr

Source§

fn from(value: BitwiseOr) -> Self

Converts to this type from the input type.
Source§

impl From<BitwiseXor> for Expr

Source§

fn from(value: BitwiseXor) -> Self

Converts to this type from the input type.
Source§

impl From<Broadcast> for Expr

Source§

fn from(value: Broadcast) -> Self

Converts to this type from the input type.
Source§

impl From<Call> for Expr

Source§

fn from(value: Call) -> Self

Converts to this type from the input type.
Source§

impl From<Cast> for Expr

Source§

fn from(value: Cast) -> Self

Converts to this type from the input type.
Source§

impl From<Constant> for Expr

Source§

fn from(value: Constant) -> Self

Converts to this type from the input type.
Source§

impl From<DataTypeImm> for Expr

Source§

fn from(value: DataTypeImm) -> Self

Converts to this type from the input type.
Source§

impl From<Div> for Expr

Source§

fn from(value: Div) -> Self

Converts to this type from the input type.
Source§

impl From<EQ> for Expr

Source§

fn from(value: EQ) -> Self

Converts to this type from the input type.
Source§

impl From<Expr> for ObjectRef

Source§

fn from(value: Expr) -> Self

Converts to this type from the input type.
Source§

impl From<FloatImm> for Expr

Source§

fn from(value: FloatImm) -> Self

Converts to this type from the input type.
Source§

impl From<FloorDiv> for Expr

Source§

fn from(value: FloorDiv) -> Self

Converts to this type from the input type.
Source§

impl From<FloorMod> for Expr

Source§

fn from(value: FloorMod) -> Self

Converts to this type from the input type.
Source§

impl From<Function> for Expr

Source§

fn from(value: Function) -> Self

Converts to this type from the input type.
Source§

impl From<GE> for Expr

Source§

fn from(value: GE) -> Self

Converts to this type from the input type.
Source§

impl From<GT> for Expr

Source§

fn from(value: GT) -> Self

Converts to this type from the input type.
Source§

impl From<GenericConst> for Expr

Source§

fn from(value: GenericConst) -> Self

Converts to this type from the input type.
Source§

impl From<GlobalVar> for Expr

Source§

fn from(value: GlobalVar) -> Self

Converts to this type from the input type.
Source§

impl From<IntExpr> for Expr

Source§

fn from(value: IntExpr) -> Self

Converts to this type from the input type.
Source§

impl From<IntImm> for Expr

Source§

fn from(value: IntImm) -> Self

Converts to this type from the input type.
Source§

impl From<IterMapExpr> for Expr

Source§

fn from(value: IterMapExpr) -> Self

Converts to this type from the input type.
Source§

impl From<IterSplitExpr> for Expr

Source§

fn from(value: IterSplitExpr) -> Self

Converts to this type from the input type.
Source§

impl From<IterSumExpr> for Expr

Source§

fn from(value: IterSumExpr) -> Self

Converts to this type from the input type.
Source§

impl From<LE> for Expr

Source§

fn from(value: LE) -> Self

Converts to this type from the input type.
Source§

impl From<LShift> for Expr

Source§

fn from(value: LShift) -> Self

Converts to this type from the input type.
Source§

impl From<LT> for Expr

Source§

fn from(value: LT) -> Self

Converts to this type from the input type.
Source§

impl From<LambdaExpr> for Expr

Source§

fn from(value: LambdaExpr) -> Self

Converts to this type from the input type.
Source§

impl From<Let> for Expr

Source§

fn from(value: Let) -> Self

Converts to this type from the input type.
Source§

impl From<Max> for Expr

Source§

fn from(value: Max) -> Self

Converts to this type from the input type.
Source§

impl From<Min> for Expr

Source§

fn from(value: Min) -> Self

Converts to this type from the input type.
Source§

impl From<Mod> for Expr

Source§

fn from(value: Mod) -> Self

Converts to this type from the input type.
Source§

impl From<Mul> for Expr

Source§

fn from(value: Mul) -> Self

Converts to this type from the input type.
Source§

impl From<NE> for Expr

Source§

fn from(value: NE) -> Self

Converts to this type from the input type.
Source§

impl From<Not> for Expr

Source§

fn from(value: Not) -> Self

Converts to this type from the input type.
Source§

impl From<Op> for Expr

Source§

fn from(value: Op) -> Self

Converts to this type from the input type.
Source§

impl From<OpaqueExpr> for Expr

Source§

fn from(value: OpaqueExpr) -> Self

Converts to this type from the input type.
Source§

impl From<Or> for Expr

Source§

fn from(value: Or) -> Self

Converts to this type from the input type.
Source§

impl From<PrimExpr> for Expr

Source§

fn from(value: PrimExpr) -> Self

Converts to this type from the input type.
Source§

impl From<PrimVar> for Expr

Source§

fn from(value: PrimVar) -> Self

Converts to this type from the input type.
Source§

impl From<RShift> for Expr

Source§

fn from(value: RShift) -> Self

Converts to this type from the input type.
Source§

impl From<Ramp> for Expr

Source§

fn from(value: Ramp) -> Self

Converts to this type from the input type.
Source§

impl From<Select> for Expr

Source§

fn from(value: Select) -> Self

Converts to this type from the input type.
Source§

impl From<Shuffle> for Expr

Source§

fn from(value: Shuffle) -> Self

Converts to this type from the input type.
Source§

impl From<StagingExpr> for Expr

Source§

fn from(value: StagingExpr) -> Self

Converts to this type from the input type.
Source§

impl From<StringImm> for Expr

Source§

fn from(value: StringImm) -> Self

Converts to this type from the input type.
Source§

impl From<Sub> for Expr

Source§

fn from(value: Sub) -> Self

Converts to this type from the input type.
Source§

impl From<TensorLoad> for Expr

Source§

fn from(value: TensorLoad) -> Self

Converts to this type from the input type.
Source§

impl From<TensorRegion> for Expr

Source§

fn from(value: TensorRegion) -> Self

Converts to this type from the input type.
Source§

impl From<Tuple> for Expr

Source§

fn from(value: Tuple) -> Self

Converts to this type from the input type.
Source§

impl From<TupleGetItem> for Expr

Source§

fn from(value: TupleGetItem) -> Self

Converts to this type from the input type.
Source§

impl From<Var> for Expr

Source§

fn from(value: Var) -> Self

Converts to this type from the input type.
Source§

impl From<bool> for Expr

Source§

fn from(value: bool) -> Self

Converts to this type from the input type.
Source§

impl From<f32> for Expr

Source§

fn from(value: f32) -> Self

Converts to this type from the input type.
Source§

impl From<f64> for Expr

Source§

fn from(value: f64) -> Self

Converts to this type from the input type.
Source§

impl From<i32> for Expr

Source§

fn from(value: i32) -> Self

Converts to this type from the input type.
Source§

impl From<i64> for Expr

Source§

fn from(value: i64) -> Self

Converts to this type from the input type.
Source§

impl<'a> IntoArg<Expr> for &'a Add

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a And

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a BaseFunc

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a BitwiseAnd

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a BitwiseNot

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a BitwiseOr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a BitwiseXor

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Broadcast

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Call

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Cast

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Constant

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a DataTypeImm

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Div

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a EQ

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Expr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a FloatImm

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a FloorDiv

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a FloorMod

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Function

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a GE

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a GT

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a GenericConst

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a GlobalVar

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a IntExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a IntImm

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a IterMapExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a IterSplitExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a IterSumExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a LE

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a LShift

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a LT

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a LambdaExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Let

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Max

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Min

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Mod

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Mul

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a NE

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Not

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Op

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a OpaqueExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Or

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a PrimExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a PrimVar

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a RShift

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Ramp

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Select

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Shuffle

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a StagingExpr

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a StringImm

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Sub

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a TensorLoad

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a TensorRegion

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Tuple

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a TupleGetItem

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<Expr> for &'a Var

Source§

type Output = &'a Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Add

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for And

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for BaseFunc

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for BitwiseAnd

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for BitwiseNot

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for BitwiseOr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for BitwiseXor

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Broadcast

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Call

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Cast

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Constant

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for DataTypeImm

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Div

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for EQ

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Expr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for FloatImm

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for FloorDiv

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for FloorMod

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Function

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for GE

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for GT

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for GenericConst

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for GlobalVar

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for IntExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for IntImm

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for IterMapExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for IterSplitExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for IterSumExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for LE

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for LShift

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for LT

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for LambdaExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Let

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Max

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Min

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Mod

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Mul

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for NE

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Not

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Op

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for OpaqueExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Or

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for PrimExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for PrimVar

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for RShift

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Ramp

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Select

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Shuffle

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for StagingExpr

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for StringImm

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Sub

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for TensorLoad

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for TensorRegion

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Tuple

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for TupleGetItem

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for Var

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for bool

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for f32

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for f64

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for i32

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<Expr> for i64

Source§

type Output = Expr

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> Expr

Convert into a T or a &T.
Source§

fn into_owned(self) -> Expr

Convert into an owned T, cloning only a borrowed value.
Source§

impl<'a> IntoArg<ObjectRef> for &'a Expr

Source§

type Output = &'a ObjectRef

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> &'a ObjectRef

Convert into a T or a &T.
Source§

fn into_owned(self) -> ObjectRef

Convert into an owned T, cloning only a borrowed value.
Source§

impl IntoArg<ObjectRef> for Expr

Source§

type Output = ObjectRef

T when owned, &T when borrowed.
Source§

fn into_arg(self) -> ObjectRef

Convert into a T or a &T.
Source§

fn into_owned(self) -> ObjectRef

Convert into an owned T, cloning only a borrowed value.
Source§

impl ObjectRefAnyCompatible for Expr

Source§

fn extra_check(obj: &Self::ContainerType) -> bool

Whether obj, an instance of ContainerType, is a value of Self. Every strict and converting cast checks it, after the object type.
Source§

fn convert_fallback(value: AnyView<'_>) -> Option<Self>

Convert a value that is not a Self object, such as an integer that stands for a constant; None rejects it. Only converting casts (TryFrom<Any>, typed function arguments) call it; downcast_ref, downcast and match_any! never do.
Source§

fn custom_type_str() -> String

The type name in conversion errors and type schemas; by default the object’s type key. See AnyCompatible::type_str.
Source§

fn custom_mismatch_type_info(value: AnyView<'_>) -> String

The name of the mismatched value in conversion errors; by default its runtime type key. See AnyCompatible::get_mismatch_type_info.
Source§

impl ObjectRefCore for Expr

Source§

type ContainerType = ExprObj

The object type the reference points to.
Source§

fn data(this: &Self) -> &ObjectArc<Self::ContainerType>

Borrow the object’s handle.
Source§

fn into_data(this: Self) -> ObjectArc<Self::ContainerType>

Take the object’s handle.
Source§

unsafe fn from_data(data: ObjectArc<Self::ContainerType>) -> Self

Make a reference from the object’s handle. Read more
Source§

fn same_as<Other>(&self, other: &Other) -> bool
where Other: ObjectRefCore,

Whether two references point to the same object.
Source§

fn type_key(&self) -> &'static str

The registered type key of the object’s runtime type, such as "ffi.Array", as C++ ObjectRef::GetTypeKey.
Source§

fn is<T>(&self) -> bool
where T: AnyCompatible,

Whether the reference is a T as is, such as a subtype or a container whose elements are checked too, by the strict check of downcast, without a reference count change. See also crate::Any::is.
Source§

fn downcast_ref<T>(&self) -> Option<&T>
where T: DowncastRefFromObject,

Borrow the underlying object as T when it is one. Read more
Source§

fn downcast<B>(self) -> Result<B, Self>
where B: ObjectRefCore,

Take self as B, a subtype or a container such as Array<i64> whose elements are checked too, when its object is one, without copying it. On a mismatch the reference is returned unchanged. Read more
Source§

impl<'a> PackedCallArg for &'a Expr

Source§

type Holder = &'a Expr

What keeps the argument alive during the call.
Source§

fn into_packed_arg(self) -> &'a Expr

Source§

fn as_packed_arg(holder: &Self::Holder) -> AnyView<'_>

Source§

impl PackedCallArg for Expr

Source§

type Holder = Expr

What keeps the argument alive during the call.
Source§

fn into_packed_arg(self) -> Expr

Source§

fn as_packed_arg(holder: &Self::Holder) -> AnyView<'_>

Source§

impl<'a> TryFrom<&'a Any> for Expr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Any) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Add

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for And

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for BaseFunc

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for BitwiseAnd

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for BitwiseNot

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for BitwiseOr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for BitwiseXor

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Broadcast

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Call

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Cast

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Constant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for DataTypeImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Div

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for EQ

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for FloatImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for FloorDiv

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for FloorMod

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Function

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for GE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for GT

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for GenericConst

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for GlobalVar

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for IntExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for IntImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for IterMapExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for IterSplitExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for IterSumExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for LE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for LShift

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for LT

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for LambdaExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Let

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Max

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Min

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Mod

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Mul

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for NE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Not

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Op

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for OpaqueExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Or

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for PrimExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for PrimVar

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for RShift

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Ramp

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Select

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Shuffle

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for StagingExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for StringImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Sub

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for TensorLoad

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for TensorRegion

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Tuple

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for TupleGetItem

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&Expr> for Var

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<&ObjectRef> for Expr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: &ObjectRef) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Any> for Expr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Any) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<AnyView<'a>> for Expr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: AnyView<'a>) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Add

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for And

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for BaseFunc

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for BitwiseAnd

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for BitwiseNot

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for BitwiseOr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for BitwiseXor

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Broadcast

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Call

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Cast

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Constant

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for DataTypeImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Div

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for EQ

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for FloatImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for FloorDiv

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for FloorMod

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Function

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for GE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for GT

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for GenericConst

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for GlobalVar

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for IntExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for IntImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for IterMapExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for IterSplitExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for IterSumExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for LE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for LShift

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for LT

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for LambdaExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Let

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Max

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Min

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Mod

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Mul

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for NE

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Not

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Op

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for OpaqueExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Or

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for PrimExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for PrimVar

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for RShift

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Ramp

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Select

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Shuffle

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for StagingExpr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for StringImm

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Sub

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for TensorLoad

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for TensorRegion

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Tuple

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for TupleGetItem

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Expr> for Var

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: Expr) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<ExprResult> for Expr

Source§

fn try_from(value: ExprResult) -> Result<Self>

Take out the built expression, or the first error raised while building it.

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

impl TryFrom<ObjectRef> for Expr

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: ObjectRef) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TypeSubsumes<Add> for Expr

Source§

impl TypeSubsumes<And> for Expr

Source§

impl TypeSubsumes<BaseFunc> for Expr

Source§

impl TypeSubsumes<BitwiseAnd> for Expr

Source§

impl TypeSubsumes<BitwiseNot> for Expr

Source§

impl TypeSubsumes<BitwiseOr> for Expr

Source§

impl TypeSubsumes<BitwiseXor> for Expr

Source§

impl TypeSubsumes<Broadcast> for Expr

Source§

impl TypeSubsumes<Call> for Expr

Source§

impl TypeSubsumes<Cast> for Expr

Source§

impl TypeSubsumes<Constant> for Expr

Source§

impl TypeSubsumes<DataTypeImm> for Expr

Source§

impl TypeSubsumes<Div> for Expr

Source§

impl TypeSubsumes<EQ> for Expr

Source§

impl TypeSubsumes<Expr> for ObjectRef

Source§

impl TypeSubsumes<FloatImm> for Expr

Source§

impl TypeSubsumes<FloorDiv> for Expr

Source§

impl TypeSubsumes<FloorMod> for Expr

Source§

impl TypeSubsumes<Function> for Expr

Source§

impl TypeSubsumes<GE> for Expr

Source§

impl TypeSubsumes<GT> for Expr

Source§

impl TypeSubsumes<GenericConst> for Expr

Source§

impl TypeSubsumes<GlobalVar> for Expr

Source§

impl TypeSubsumes<IntExpr> for Expr

Source§

impl TypeSubsumes<IntImm> for Expr

Source§

impl TypeSubsumes<IterMapExpr> for Expr

Source§

impl TypeSubsumes<IterSplitExpr> for Expr

Source§

impl TypeSubsumes<IterSumExpr> for Expr

Source§

impl TypeSubsumes<LE> for Expr

Source§

impl TypeSubsumes<LShift> for Expr

Source§

impl TypeSubsumes<LT> for Expr

Source§

impl TypeSubsumes<LambdaExpr> for Expr

Source§

impl TypeSubsumes<Let> for Expr

Source§

impl TypeSubsumes<Max> for Expr

Source§

impl TypeSubsumes<Min> for Expr

Source§

impl TypeSubsumes<Mod> for Expr

Source§

impl TypeSubsumes<Mul> for Expr

Source§

impl TypeSubsumes<NE> for Expr

Source§

impl TypeSubsumes<Not> for Expr

Source§

impl TypeSubsumes<Op> for Expr

Source§

impl TypeSubsumes<OpaqueExpr> for Expr

Source§

impl TypeSubsumes<Or> for Expr

Source§

impl TypeSubsumes<PrimExpr> for Expr

Source§

impl TypeSubsumes<PrimVar> for Expr

Source§

impl TypeSubsumes<RShift> for Expr

Source§

impl TypeSubsumes<Ramp> for Expr

Source§

impl TypeSubsumes<Select> for Expr

Source§

impl TypeSubsumes<Shuffle> for Expr

Source§

impl TypeSubsumes<StagingExpr> for Expr

Source§

impl TypeSubsumes<StringImm> for Expr

Source§

impl TypeSubsumes<Sub> for Expr

Source§

impl TypeSubsumes<TensorLoad> for Expr

Source§

impl TypeSubsumes<TensorRegion> for Expr

Source§

impl TypeSubsumes<Tuple> for Expr

Source§

impl TypeSubsumes<TupleGetItem> for Expr

Source§

impl TypeSubsumes<Var> for Expr

Auto Trait Implementations§

§

impl Freeze for Expr

§

impl RefUnwindSafe for Expr

§

impl Send for Expr

§

impl Sync for Expr

§

impl Unpin for Expr

§

impl UnsafeUnpin for Expr

§

impl UnwindSafe for Expr

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AnyCompatible for T

Source§

const MATCH_ANY_EXACT: bool

Source§

fn match_any_exact_type_index() -> i32

Source§

unsafe fn is_undefined(field: *const T) -> bool

Whether field, which holds a value of this type or all-zero bytes, holds all-zero bytes that are no value of this type, as a null object reference, a string of type index None or a zero device type: a field that a creator left undefined for reflection to set. An undefined field is no value; a nullable reference is Option<T>, whose None is a defined value. Read more
Source§

unsafe fn copy_to_any_view(src: &T, data: &mut TVMFFIAny)

Write a cell that borrows src into data. Read more
Source§

unsafe fn move_to_any(src: T, data: &mut TVMFFIAny)

Write a cell that owns src into data. Read more
Source§

unsafe fn check_any_strict(data: &TVMFFIAny) -> bool

Whether data holds a Self as is, without conversion. Read more
Source§

unsafe fn copy_from_any_view_after_check(data: &TVMFFIAny) -> T

Copy a Self out of a cell that holds one, retaining any object. Read more
Source§

unsafe fn move_from_any_after_check(data: &mut TVMFFIAny) -> T

Move a Self out of an owning cell that holds one. Read more
Source§

unsafe fn try_cast_from_any_view(data: &TVMFFIAny) -> Result<T, ()>

Convert data into a Self by the FFI rules, such as an integer into a float; Err if it does not convert. Read more
Source§

fn get_mismatch_type_info(data: &TVMFFIAny) -> String

The name of the mismatched value data in conversion errors; by default its runtime type key.
Source§

fn type_str() -> String

The type name in conversion errors and type schemas, such as int, ffi.String or Array<int>.
Source§

fn type_schema() -> String

The type schema of the type: the JSON object that describes it, which the type schemas of functions and fields embed. Read more
Source§

fn to_any(&self) -> Any

Borrow self into an owned Any, increfing object-backed values. Read more
Source§

impl<T> ArgType for T

Source§

fn check(value: AnyView<'_>) -> bool

Return whether value, which is not None, is accepted, without converting it.
Source§

fn type_str() -> String

Return the expected type, for an error.
Source§

fn mismatch(value: AnyView<'_>) -> String

Describe a rejected value, for an error. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, S> IntoExpr<T> for S
where S: IntoArg<T>, <S as IntoArg<T>>::Output: Into<T>,

Source§

type Output = <S as IntoArg<T>>::Output

The expression: an owned T for an owned value or a literal, or a borrowed &T for a reference, which converts without a reference-count change. Read more
Source§

fn into_expr(self) -> Result<<S as IntoArg<T>>::Output, Error>

Convert into an expression, or return the first error an ExprResult raised.
Source§

fn into_owned_expr(self) -> Result<T>
where Self: Sized,

Convert into an owned expression, as Cow::into_owned does: an owned value moves, and only a borrowed expression is cloned.
Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ContainerElement for T
where T: AnyCompatible,

Source§

impl<T> TypeSubsumes<T> for T
where T: ?Sized,