Module rustfmt_nightly::comment

source ยท

Structsยง

  • CharClasses ๐Ÿ”’
  • CommentCodeSlices ๐Ÿ”’
    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.
  • CommentReducer ๐Ÿ”’
    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).
  • CommentRewrite ๐Ÿ”’
  • ItemizedBlock ๐Ÿ”’
    Block that is formatted as an item.
  • LineClasses ๐Ÿ”’
    An iterator over the lines of a string, paired with the char kind at the end of the line.
  • 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ยง

  • CharClassesStatus ๐Ÿ”’
  • CodeBlockAttribute ๐Ÿ”’
    Enum indicating if the code block contains rust based on attributes
  • CodeCharKind ๐Ÿ”’
    Distinguish between functional part of code and comments
  • CommentStyle ๐Ÿ”’
  • FullCodeCharKind ๐Ÿ”’
    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ยง