rust - How do I destructuring-match syntax::ptr::P? -
i have function tries match syntax::ast::exprbinary(syntax::ast::binop, syntax::ptr::p<ast::expr>, syntax::ptr::p<syntax::ast::expr>), cannot find right syntax match p contained expression out of it. see can use deref @ expr, cumbersome.
is there way rid of p within match (or if let) clause?
there's no way pattern match through p: the field private , don't have generalised pointer pattern matching (yet).
the ways @ contained data deref (for &), , methods and_then , map (for by-value).
Comments
Post a Comment