/// Lookup the eclasses of all the nodes in the given [`RecExpr`].
Lookup the eclasses of all the nodes in the given [`RecExpr`].
Lookup the eclasses of all the nodes in the given [ ` RecExpr ` ] .
pub fn lookup_expr_ids(&self, expr: &RecExpr<L>) -> Option<Vec<Id>> {
        let nodes = expr.as_ref();
        let mut new_ids = Vec::with_capacity(nodes.len());
        for node in nodes {
            let node = node.clone().map_children(|i| new_ids[usize::from(i)]);
            let id = self.lookup(node)?;
            new_ids.push(id)
        }
        Some(new_ids)
    }
pub fn lookup_expr_ids ( & self , expr : & RecExpr < L > ) -> Option < Vec < Id > > { let nodes = expr . as_ref ( ) ; let mut new_ids = Vec :: with_capacity ( nodes . len ( ) ) ; for node in nodes { let node = node . clone ( ) . map_children ( | i | new_ids [ usize :: from ( i ) ] ) ; let id = self . lookup ( node ) ? ; new_ids . push ( id ) } Some ( new_ids ) }
Lookup the eclasses of all the nodes in the given [`RecExpr`].
Lookup the eclasses of all the nodes in the given [ ` RecExpr ` ] .
&self
expr
&RecExpr<L>