Expand description
Format list-like expressions and items.
Re-exportsยง
use std::cmp;๐use std::iter::Peekable;๐use rustc_span::BytePos;๐use rustc_span::Span;๐use crate::comment::FindUncommented;๐use crate::comment::find_comment_end;๐use crate::comment::rewrite_comment;๐use crate::config::Config;๐use crate::config::IndentStyle;๐use crate::rewrite::ExceedsMaxWidthError;๐use crate::rewrite::RewriteContext;๐use crate::rewrite::RewriteError;๐use crate::rewrite::RewriteResult;๐use crate::shape::Indent;๐use crate::shape::Shape;๐use crate::utils::count_newlines;๐use crate::utils::first_line_width;๐use crate::utils::last_line_width;๐use crate::utils::mk_sp;๐use crate::utils::starts_with_newline;๐use crate::utils::unicode_str_width;๐use crate::visitor::SnippetProvider;๐use crate::config::lists::*;๐
Structsยง
- List
Formatting ๐ - List
Item ๐ - List
Items ๐
Enumsยง
- List
Item ๐Comment Style - Separator ๐
- The type of separator for lists.
Functionsยง
- calculate_
width ๐ - Returns the count and total width of the list items.
- comment_
len ๐ - definitive_
tactic ๐ - extract_
post_ ๐comment - extract_
pre_ ๐comment - get_
comment_ ๐end - has_
extra_ ๐newline - itemize_
list ๐ - max_
width_ ๐of_ item_ with_ post_ comment - post_
comment_ ๐alignment - shape_
for_ ๐tactic - struct_
lit_ ๐formatting - struct_
lit_ ๐shape - struct_
lit_ ๐tactic - total_
item_ ๐width - write_
list ๐