pub struct LintPassInfoBuilder { /* private fields */ }
Implementations§
Source§impl LintPassInfoBuilder
impl LintPassInfoBuilder
Sourcepub fn new(lints: Box<[&'static Lint]>) -> Self
pub fn new(lints: Box<[&'static Lint]>) -> Self
This method creates a new LintPassInfoBuilder
with minimal required information.
The lints
argument should contain all lints which can be emitted by this crate. It
allows the driver to track the lint level.
Sourcepub fn build(self) -> LintPassInfo
pub fn build(self) -> LintPassInfo
This method builds the LintPassInfo
, ready for consumption.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LintPassInfoBuilder
impl RefUnwindSafe for LintPassInfoBuilder
impl Send for LintPassInfoBuilder
impl Sync for LintPassInfoBuilder
impl Unpin for LintPassInfoBuilder
impl UnwindSafe for LintPassInfoBuilder
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