Skip to main content

expr_path

Function expr_path 

Source
pub fn expr_path<'a>(expr: &'a Expr, path: &[Symbol]) -> Option<&'a Expr>
Expand description

Resolves a dotted path of symbol keys through nested map expressions.

Walks expr one segment at a time, descending into Expr::Map entries keyed by each symbol. Returns the addressed sub-expression, or None if any segment is missing or the cursor is not a map.