collect_attr_chain_from_getattr

Function collect_attr_chain_from_getattr 

Source
pub fn collect_attr_chain_from_getattr<'a>(
    e: &'a Expr,
) -> Option<(&'a str, Vec<&'a str>)>
Expand description

If e is a chain of .attr segments on a plain variable (foo.bar.baz), returns the root name and path segments in order.