Module comments

Module comments 

Source

Modulesยง

comment ๐Ÿ”’
Modified from rustc_ast::util::comments.

Structsยง

Comments

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.
gather_comments ๐Ÿ”’
line_begin_pos ๐Ÿ”’
Returns the BytePos of the beginning of the current line.
split_block_comment_into_lines ๐Ÿ”’
trim_whitespace_prefix ๐Ÿ”’