tinymist_analysis::syntax::defType Alias BinExpr
Source pub type BinExpr = BinInst<Expr>;
struct BinExpr {
pub operands: (Expr, Expr),
pub op: BinOp,
}
§operands: (Expr, Expr)
The operands of the binary operation
The kind of the binary operation
Implementations
Create a binary operation type
Get the operands of the binary operation
Trait Implementations
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more
Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more
Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more
Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more