pub fn pattern_constructor(p: &Pattern) -> Option<&Name>
Get the constructor name from a pattern (if it is a constructor pattern).