pub struct FormattingConfigBuilder { /* private fields */ }Expand description
Builder for creating formatting configurations
Implementations§
Source§impl FormattingConfigBuilder
impl FormattingConfigBuilder
Sourcepub fn check_rustfmt(self, enable: bool) -> Self
pub fn check_rustfmt(self, enable: bool) -> Self
Enable or disable rustfmt checking
Sourcepub fn check_clippy(self, enable: bool) -> Self
pub fn check_clippy(self, enable: bool) -> Self
Enable or disable clippy checking
Sourcepub fn clippy_lints(self, lints: Vec<String>) -> Self
pub fn clippy_lints(self, lints: Vec<String>) -> Self
Add custom clippy lints
Sourcepub fn max_line_length(self, length: usize) -> Self
pub fn max_line_length(self, length: usize) -> Self
Set maximum line length
Sourcepub fn require_docs(self, require: bool) -> Self
pub fn require_docs(self, require: bool) -> Self
Enable or disable documentation requirements
Sourcepub fn ml_rules(self, rules: MLFormattingRules) -> Self
pub fn ml_rules(self, rules: MLFormattingRules) -> Self
Set ML-specific formatting rules
Sourcepub fn build(self) -> FormattingConfig
pub fn build(self) -> FormattingConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormattingConfigBuilder
impl RefUnwindSafe for FormattingConfigBuilder
impl Send for FormattingConfigBuilder
impl Sync for FormattingConfigBuilder
impl Unpin for FormattingConfigBuilder
impl UnwindSafe for FormattingConfigBuilder
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> 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