fn get_vertical_trim(lines: &[&str]) -> Option<(usize, usize)>
Copied verbatim from rustc’s beautify_doc_string, modulo CommentKind/CommentShape renaming.
beautify_doc_string
CommentKind
CommentShape