#[non_exhaustive]pub enum ASTNode<'a> {
Stmt(&'a Stmt),
Expr(&'a Expr),
}
Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Trait Implementations§
source§impl PartialEq for ASTNode<'_>
impl PartialEq for ASTNode<'_>
impl<'a> Copy for ASTNode<'a>
impl Eq for ASTNode<'_>
Auto Trait Implementations§
impl<'a> Freeze for ASTNode<'a>
impl<'a> !RefUnwindSafe for ASTNode<'a>
impl<'a> !Send for ASTNode<'a>
impl<'a> !Sync for ASTNode<'a>
impl<'a> Unpin for ASTNode<'a>
impl<'a> !UnwindSafe for ASTNode<'a>
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
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.