Enum pomelo_hir::NodeParent
source · pub enum NodeParent {
Dec(FileAstIdx<Dec>),
Expr(FileAstIdx<Expr>),
Pat(FileAstIdx<Pat>),
}
Expand description
Used to lookup the parent span of nodes that were generated during lowering.
Variants§
Implementations§
source§impl NodeParent
impl NodeParent
pub(super) fn from_expr(ctx: &mut LoweringCtxt, expr: &Expr) -> Self
pub(super) fn from_pat(ctx: &mut LoweringCtxt, pat: &Pat) -> Self
pub(super) fn from_dec(ctx: &mut LoweringCtxt, dec: &Dec) -> Self
Trait Implementations§
source§impl Clone for NodeParent
impl Clone for NodeParent
source§fn clone(&self) -> NodeParent
fn clone(&self) -> NodeParent
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