Struct dprint_core::formatting::ir_helpers::MultiLineOptions
source · [−]pub struct MultiLineOptions {
pub newline_at_start: bool,
pub newline_at_end: bool,
pub with_indent: bool,
pub with_hanging_indent: BoolOrCondition,
pub maintain_line_breaks: bool,
}Fields
newline_at_start: boolnewline_at_end: boolwith_indent: boolwith_hanging_indent: BoolOrConditionmaintain_line_breaks: boolImplementations
sourceimpl 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 !RefUnwindSafe for MultiLineOptions
impl !Send for MultiLineOptions
impl !Sync for MultiLineOptions
impl Unpin for MultiLineOptions
impl !UnwindSafe for MultiLineOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more