Struct valkyrie_ast::IfBranchNode
source · pub struct IfBranchNode {
pub condition: ExpressionNode,
pub body: StatementBlock,
pub span: Range<u32>,
}Expand description
a > 0 then { ... }
Fields§
§condition: ExpressionNodeThe condition to check
body: StatementBlockThe body of the statement
span: Range<u32>The range of the node
Trait Implementations§
source§impl Clone for IfBranchNode
impl Clone for IfBranchNode
source§fn clone(&self) -> IfBranchNode
fn clone(&self) -> IfBranchNode
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 IfBranchNode
impl Debug for IfBranchNode
source§impl Hash for IfBranchNode
impl Hash for IfBranchNode
source§impl PartialEq for IfBranchNode
impl PartialEq for IfBranchNode
source§fn eq(&self, other: &IfBranchNode) -> bool
fn eq(&self, other: &IfBranchNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for IfBranchNode
impl StructuralPartialEq for IfBranchNode
Auto Trait Implementations§
impl RefUnwindSafe for IfBranchNode
impl Send for IfBranchNode
impl Sync for IfBranchNode
impl Unpin for IfBranchNode
impl UnwindSafe for IfBranchNode
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