Struct valkyrie_ast::ElseStatement
source · pub struct ElseStatement {
pub body: StatementBlock,
pub span: Range<u32>,
}Expand description
Helper function to format the body of an if statement
Fields§
§body: StatementBlockThe main body of the statement
span: Range<u32>The range of the node
Trait Implementations§
source§impl Clone for ElseStatement
impl Clone for ElseStatement
source§fn clone(&self) -> ElseStatement
fn clone(&self) -> ElseStatement
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 ElseStatement
impl Debug for ElseStatement
source§impl Default for ElseStatement
impl Default for ElseStatement
source§fn default() -> ElseStatement
fn default() -> ElseStatement
Returns the “default value” for a type. Read more
source§impl Hash for ElseStatement
impl Hash for ElseStatement
source§impl PartialEq for ElseStatement
impl PartialEq for ElseStatement
source§fn eq(&self, other: &ElseStatement) -> bool
fn eq(&self, other: &ElseStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for ElseStatement
impl StructuralPartialEq for ElseStatement
Auto Trait Implementations§
impl RefUnwindSafe for ElseStatement
impl Send for ElseStatement
impl Sync for ElseStatement
impl Unpin for ElseStatement
impl UnwindSafe for ElseStatement
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