pub fn classify_with(pat: &str, mode: Option<Mode>) -> PatternKind
classify under an optional explicit mode: a stated Mode pins the kind; absent, promotion decides.
classify
Mode