Struct okane_core::repl::expr::BinaryOpExpr
source · 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 copy 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>
§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§fn eq(&self, other: &BinaryOpExpr<'i>) -> bool
fn eq(&self, other: &BinaryOpExpr<'i>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)