[−][src]Module rustc_ast::util::comments

Structs

Comment

Enums

CommentStyle

Functions

all_whitespace

Returns None if the first col chars of s contain a non-whitespace char. Otherwise returns Some(k) where k is first char offset after that leading whitespace. Note that k may be outside bounds of s.

beautify_doc_string

Makes a doc string more presentable to users. Used by rustdoc and perhaps other tools, but not by rustc.

gather_comments
split_block_comment_into_lines
trim_whitespace_prefix