pub struct BinaryExpression {
pub left: Box<Expr>,
pub operator: BinaryOperator,
pub right: Box<Expr>,
}Fields§
§left: Box<Expr>§operator: BinaryOperator§right: Box<Expr>Implementations§
Source§impl BinaryExpression
impl BinaryExpression
pub fn new(left: Expr, operator: BinaryOperator, right: Expr) -> Self
Trait Implementations§
Source§impl Debug for BinaryExpression
impl Debug for BinaryExpression
Source§impl From<BinaryExpression> for Component
impl From<BinaryExpression> for Component
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for Expr
impl From<BinaryExpression> for Expr
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for OperatorExpr
impl From<BinaryExpression> for OperatorExpr
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for SequenceElement
impl From<BinaryExpression> for SequenceElement
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl From<BinaryExpression> for SyntaxNode
impl From<BinaryExpression> for SyntaxNode
Source§fn from(value: BinaryExpression) -> Self
fn from(value: BinaryExpression) -> Self
Converts to this type from the input type.
Source§impl PrettyTree for BinaryExpression
impl PrettyTree for BinaryExpression
Source§fn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Source§impl<N> Reconstruct<N> for BinaryExpressionwhere
N: ExternalCstNode,
impl<N> Reconstruct<N> for BinaryExpressionwhere
N: ExternalCstNode,
fn matches(node: &N) -> bool
fn reconstruct(node: N) -> Result<Self, ReconstructError>
Source§impl ToTokens for BinaryExpression
impl ToTokens for BinaryExpression
Auto Trait Implementations§
impl Freeze for BinaryExpression
impl RefUnwindSafe for BinaryExpression
impl Send for BinaryExpression
impl Sync for BinaryExpression
impl Unpin for BinaryExpression
impl UnsafeUnpin for BinaryExpression
impl UnwindSafe for BinaryExpression
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