fn pat_match_head(pat: &Pat, input: &str) -> Option<String>
在 input 起始处匹配 pat,返回匹配到的文本(不含 remainder)。
input
pat