pub struct FormatterConfig { /* private fields */ }
Implementations§
Source§impl FormatterConfig
impl FormatterConfig
pub fn new( tab_size: usize, max_line_length: usize, sort_module_level_items: bool, tuple_breaking_behavior: CollectionsBreakingBehavior, fixed_array_breaking_behavior: CollectionsBreakingBehavior, merge_use_items: bool, allow_duplicate_uses: bool, ) -> Self
pub fn sort_module_level_items(self, sort_module_level_items: bool) -> Self
pub fn tuple_breaking_behavior( self, behavior: CollectionsBreakingBehavior, ) -> Self
pub fn fixed_array_breaking_behavior( self, behavior: CollectionsBreakingBehavior, ) -> Self
pub fn merge_use_items(self, merge: bool) -> Self
pub fn allow_duplicate_uses(self, allow: bool) -> Self
Trait Implementations§
Source§impl Clone for FormatterConfig
impl Clone for FormatterConfig
Source§fn clone(&self) -> FormatterConfig
fn clone(&self) -> FormatterConfig
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FormatterConfig
impl Debug for FormatterConfig
Source§impl Default for FormatterConfig
impl Default for FormatterConfig
Source§impl<'de> Deserialize<'de> for FormatterConfig
impl<'de> Deserialize<'de> for FormatterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FormatterConfig
impl RefUnwindSafe for FormatterConfig
impl Send for FormatterConfig
impl Sync for FormatterConfig
impl Unpin for FormatterConfig
impl UnwindSafe for FormatterConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more