pub struct LinterBuilder<S: State = Empty> { /* private fields */ }
Expand description
Use builder syntax to set the inputs and finish with build()
.
Implementations§
Source§impl<S: State> LinterBuilder<S>
impl<S: State> LinterBuilder<S>
Sourcepub fn build(self) -> Result<Linter>where
S: IsComplete,
pub fn build(self) -> Result<Linter>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn config(self, value: Config) -> LinterBuilder<SetConfig<S>>where
S::Config: IsUnset,
pub fn config(self, value: Config) -> LinterBuilder<SetConfig<S>>where
S::Config: IsUnset,
Sourcepub fn maybe_config(self, value: Option<Config>) -> LinterBuilder<SetConfig<S>>where
S::Config: IsUnset,
pub fn maybe_config(self, value: Option<Config>) -> LinterBuilder<SetConfig<S>>where
S::Config: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LinterBuilder<S>
impl<S = Empty> !RefUnwindSafe for LinterBuilder<S>
impl<S = Empty> !Send for LinterBuilder<S>
impl<S = Empty> !Sync for LinterBuilder<S>
impl<S> Unpin for LinterBuilder<S>
impl<S = Empty> !UnwindSafe for LinterBuilder<S>
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