Struct xlang_syntax::ast::Binary
source · [−]pub struct Binary<'input> {
pub loc: Loc,
pub op: BinaryOp,
pub left: Box<Expr<'input>>,
pub right: Box<Expr<'input>>,
}Expand description
A binary operation.
Fields
loc: Locop: BinaryOpleft: Box<Expr<'input>>right: Box<Expr<'input>>Implementations
Trait Implementations
sourceimpl<'input> PartialEq<Binary<'input>> for Binary<'input>
impl<'input> PartialEq<Binary<'input>> for Binary<'input>
impl<'input> StructuralPartialEq for Binary<'input>
Auto Trait Implementations
impl<'input> RefUnwindSafe for Binary<'input>
impl<'input> Send for Binary<'input>
impl<'input> Sync for Binary<'input>
impl<'input> Unpin for Binary<'input>
impl<'input> UnwindSafe for Binary<'input>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more