Module rustfmt_nightly::comment

source ·

Structs§

  • Iterator over an alternating sequence of functional and commented parts of a string. The first item is always a, possibly zero length, subslice of functional text. Line style comments contain their ending newlines.
  • Iterator over the ‘payload’ characters of a comment. It skips whitespace, comment start/end marks, and ‘*’ at the beginning of lines. The comment must be one comment, ie not more than one start mark (no multiple line comments, for example).
  • Block that is formatted as an item.
  • An iterator over the lines of a string, paired with the char kind at the end of the line.
  • A regex matching reference doc links.
  • Iterator over functional and commented parts of a string. Any part of a string is either functional code, either one block comment, either one line comment. Whitespace between comments is functional code. Line comments contain their ending newlines.

Enums§

  • Enum indicating if the code block contains rust based on attributes
  • Distinguish between functional part of code and comments
  • Distinguish between functional part of code and comments, describing opening and closing of comments for ease when chunking code from tagged characters

Constants§

Traits§

Functions§