Enum FrontendParent
pub enum FrontendParent {
Item(ItemId),
Stmt(StmtId),
Expr(ExprId),
MetaStmt(MetaStmtId),
MetaExpr(MetaExprId),
Type(TypeId),
}Expand description
Parent reference for a frontend node in deterministic traversal order.
Variants§
Item(ItemId)
Parent is a top-level item.
Stmt(StmtId)
Parent is a runtime statement.
Expr(ExprId)
Parent is a runtime expression.
MetaStmt(MetaStmtId)
Parent is a meta statement.
MetaExpr(MetaExprId)
Parent is a meta expression.
Type(TypeId)
Parent is a type expression.
Trait Implementations§
§impl Clone for FrontendParent
impl Clone for FrontendParent
§fn clone(&self) -> FrontendParent
fn clone(&self) -> FrontendParent
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 more§impl Debug for FrontendParent
impl Debug for FrontendParent
§impl PartialEq for FrontendParent
impl PartialEq for FrontendParent
impl Copy for FrontendParent
impl Eq for FrontendParent
impl StructuralPartialEq for FrontendParent
Auto Trait Implementations§
impl Freeze for FrontendParent
impl RefUnwindSafe for FrontendParent
impl Send for FrontendParent
impl Sync for FrontendParent
impl Unpin for FrontendParent
impl UnwindSafe for FrontendParent
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more