Struct valkyrie_ast::BinaryNode
source · pub struct BinaryNode {
pub infix: OperatorNode,
pub lhs: ExpressionKind,
pub rhs: ExpressionKind,
}
Expand description
An expression node with binary operator and two expressions
Fields§
§infix: OperatorNode
The operator of the node
lhs: ExpressionKind
The left hand side of the node
rhs: ExpressionKind
The right hand side of the node
Trait Implementations§
source§impl Clone for BinaryNode
impl Clone for BinaryNode
source§fn clone(&self) -> BinaryNode
fn clone(&self) -> BinaryNode
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 Debug for BinaryNode
impl Debug for BinaryNode
source§impl From<BinaryNode> for ExpressionKind
impl From<BinaryNode> for ExpressionKind
source§fn from(o: BinaryNode) -> Self
fn from(o: BinaryNode) -> Self
Converts to this type from the input type.
source§impl Hash for BinaryNode
impl Hash for BinaryNode
source§impl PartialEq for BinaryNode
impl PartialEq for BinaryNode
source§fn eq(&self, other: &BinaryNode) -> bool
fn eq(&self, other: &BinaryNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ValkyrieNode for BinaryNode
impl ValkyrieNode for BinaryNode
impl Eq for BinaryNode
impl StructuralPartialEq for BinaryNode
Auto Trait Implementations§
impl RefUnwindSafe for BinaryNode
impl Send for BinaryNode
impl Sync for BinaryNode
impl Unpin for BinaryNode
impl UnwindSafe for BinaryNode
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