access_ident_recursive

Function access_ident_recursive 

Source
pub fn access_ident_recursive(expr: &Expr) -> Option<(String, Vec<String>)>
Expand description

Walk a syn::Expr and produce the root identifier together with any field projections.

Examples:

  • ptr("ptr", [])
  • region.size("region", ["size"])
  • tuple.0.val("tuple", ["0", "val"])