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

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -