Struct valkyrie_ast::ExpressionNode
source · pub struct ExpressionNode {
pub omit: bool,
pub body: ExpressionKind,
pub span: Range<u32>,
}
Expand description
The ast node for an expression
Fields§
§omit: bool
Weather to omit to results
body: ExpressionKind
The expression body
span: Range<u32>
The range of the node
Trait Implementations§
source§impl Clone for ExpressionNode
impl Clone for ExpressionNode
source§fn clone(&self) -> ExpressionNode
fn clone(&self) -> ExpressionNode
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 ExpressionNode
impl Debug for ExpressionNode
source§impl Default for ExpressionNode
impl Default for ExpressionNode
source§fn default() -> ExpressionNode
fn default() -> ExpressionNode
Returns the “default value” for a type. Read more
source§impl From<ExpressionNode> for StatementKind
impl From<ExpressionNode> for StatementKind
source§fn from(o: ExpressionNode) -> Self
fn from(o: ExpressionNode) -> Self
Converts to this type from the input type.
source§impl Hash for ExpressionNode
impl Hash for ExpressionNode
source§impl PartialEq for ExpressionNode
impl PartialEq for ExpressionNode
source§fn eq(&self, other: &ExpressionNode) -> bool
fn eq(&self, other: &ExpressionNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExpressionNode
impl StructuralPartialEq for ExpressionNode
Auto Trait Implementations§
impl RefUnwindSafe for ExpressionNode
impl Send for ExpressionNode
impl Sync for ExpressionNode
impl Unpin for ExpressionNode
impl UnwindSafe for ExpressionNode
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