Struct ast::expression::Binary
source · pub struct Binary {
pub operator: TokenKind,
pub left: Box<Expression>,
pub right: Box<Expression>,
pub span: Span,
}Expand description
Represents a binary expression in the SAP language.
For example: x + 5
Fields§
§operator: TokenKind§left: Box<Expression>§right: Box<Expression>§span: SpanTrait Implementations§
source§impl PartialEq for Binary
impl PartialEq for Binary
impl StructuralPartialEq for Binary
Auto Trait Implementations§
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
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