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

Popular posts from this blog

java - Incorrect order of records in M-M relationship in hibernate -

command line - Use qwinsta in PowerShell ISE -

php - I want to create a website for polls/survey like this http://www.poll-maker.com/ -