pub struct BinaryOpExpr<'i> {
pub op: BinaryOp,
pub lhs: Box<Expr<'i>>,
pub rhs: Box<Expr<'i>>,
}
Expand description
Represents binary operator expression.
Fields§
§op: BinaryOp
§lhs: Box<Expr<'i>>
§rhs: Box<Expr<'i>>
Trait Implementations§
Source§impl<'i> Clone for BinaryOpExpr<'i>
impl<'i> Clone for BinaryOpExpr<'i>
Source§fn clone(&self) -> BinaryOpExpr<'i>
fn clone(&self) -> BinaryOpExpr<'i>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'i> Debug for BinaryOpExpr<'i>
impl<'i> Debug for BinaryOpExpr<'i>
Source§impl<'i> IntoBoundedStatic for BinaryOpExpr<'i>
impl<'i> IntoBoundedStatic for BinaryOpExpr<'i>
Source§type Static = BinaryOpExpr<'static>
type Static = BinaryOpExpr<'static>
The target type is bounded by the
'static
lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.Source§impl<'i> PartialEq for BinaryOpExpr<'i>
impl<'i> PartialEq for BinaryOpExpr<'i>
Source§impl<'i> ToBoundedStatic for BinaryOpExpr<'i>
impl<'i> ToBoundedStatic for BinaryOpExpr<'i>
impl<'i> Eq for BinaryOpExpr<'i>
impl<'i> StructuralPartialEq for BinaryOpExpr<'i>
Auto Trait Implementations§
impl<'i> Freeze for BinaryOpExpr<'i>
impl<'i> RefUnwindSafe for BinaryOpExpr<'i>
impl<'i> Send for BinaryOpExpr<'i>
impl<'i> Sync for BinaryOpExpr<'i>
impl<'i> Unpin for BinaryOpExpr<'i>
impl<'i> UnwindSafe for BinaryOpExpr<'i>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more