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.
Stmt(&'a Stmt)
A statement (Stmt
).
Expr(&'a Expr)
An expression (Expr
).
Implementations
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more