#[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<ASTNode<'_>> for ASTNode<'_>
impl PartialEq<ASTNode<'_>> for ASTNode<'_>
impl<'a> Copy for ASTNode<'a>
impl Eq for ASTNode<'_>
Auto Trait Implementations§
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