pub struct MultiLineOptions<'a> {
pub newline_at_start: bool,
pub newline_at_end: bool,
pub with_indent: bool,
pub with_hanging_indent: BoolOrCondition<'a>,
pub maintain_line_breaks: bool,
pub newline_after_value_made_multi_line: bool,
}Fields§
§newline_at_start: bool§newline_at_end: bool§with_indent: bool§with_hanging_indent: BoolOrCondition<'a>§maintain_line_breaks: boolWhether to maintain the line breaks between the values based on their lines_span
when multi-line, or when hanging because of prefer_hanging.
newline_after_value_made_multi_line: boolWhen maintaining the line breaks and multi-line, whether a value goes on a new line
when the value before it is on a single line based on its lines_span, but is
printed on multiple lines.
Implementations§
Source§impl MultiLineOptions<'_>
impl MultiLineOptions<'_>
pub fn new_line_start() -> Self
pub fn surround_newlines_indented() -> Self
pub fn same_line_start_hanging_indent() -> Self
pub fn same_line_no_indent() -> Self
pub fn maintain_line_breaks() -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for MultiLineOptions<'a>
impl<'a> !Send for MultiLineOptions<'a>
impl<'a> !Sync for MultiLineOptions<'a>
impl<'a> !UnwindSafe for MultiLineOptions<'a>
impl<'a> Forget for MultiLineOptions<'a>
impl<'a> Freeze for MultiLineOptions<'a>
impl<'a> Move for MultiLineOptions<'a>
impl<'a> Unpin for MultiLineOptions<'a>
impl<'a> UnsafeUnpin for MultiLineOptions<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more