Struct rustfmt_nightly::overflow::Context [−][src]
struct Context<'a> {
context: &'a RewriteContext<'a>,
items: Vec<OverflowableItem<'a>>,
ident: &'a str,
prefix: &'static str,
suffix: &'static str,
one_line_shape: Shape,
nested_shape: Shape,
span: Span,
item_max_width: usize,
one_line_width: usize,
force_separator_tactic: Option<SeparatorTactic>,
custom_delims: Option<(&'a str, &'a str)>,
}
Fields
context: &'a RewriteContext<'a>
items: Vec<OverflowableItem<'a>>
ident: &'a str
prefix: &'static str
suffix: &'static str
one_line_shape: Shape
nested_shape: Shape
span: Span
item_max_width: usize
one_line_width: usize
force_separator_tactic: Option<SeparatorTactic>
custom_delims: Option<(&'a str, &'a str)>
Implementations
fn new<T: 'a + IntoOverflowableItem<'a>>(
context: &'a RewriteContext<'_>,
items: impl Iterator<Item = &'a T>,
ident: &'a str,
shape: Shape,
span: Span,
prefix: &'static str,
suffix: &'static str,
item_max_width: usize,
force_separator_tactic: Option<SeparatorTactic>,
custom_delims: Option<(&'a str, &'a str)>
) -> Context<'a>
fn rewrite_last_item_with_overflow(
&self,
last_list_item: &mut ListItem,
shape: Shape
) -> Option<String>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
Blanket Implementations
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 208 bytes