Struct rustfmt_nightly::chains::ChainFormatterShared
source · struct ChainFormatterShared<'a> {
children: &'a [ChainItem],
rewrites: Vec<String>,
fits_single_line: bool,
child_count: usize,
}
Fields
children: &'a [ChainItem]
rewrites: Vec<String>
fits_single_line: bool
child_count: usize
Implementations
fn new(chain: &'a Chain) -> ChainFormatterShared<'a>
fn pure_root(&mut self) -> Option<String>
fn format_last_child(
&mut self,
may_extend: bool,
context: &RewriteContext<'_>,
shape: Shape,
child_shape: Shape
) -> Option<()>
fn join_rewrites(
&self,
context: &RewriteContext<'_>,
child_shape: Shape
) -> Option<String>
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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: 56 bytes