Struct rustc_plugin_impl::Registry
source · pub struct Registry<'a> {
pub lint_store: &'a mut LintStore,
}
Expand description
Structure used to register plugins.
A plugin registrar function takes an &mut Registry
and should call
methods to register its plugins.
Fields
lint_store: &'a mut LintStore
The LintStore
allows plugins to register new lints.
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Registry<'a>
impl<'a> !Send for Registry<'a>
impl<'a> !Sync for Registry<'a>
impl<'a> Unpin for Registry<'a>
impl<'a> !UnwindSafe for Registry<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes