pub struct AnalyzerPluginLongId(pub Arc<dyn AnalyzerPlugin>);
Expand description
An Id allowing interning AnalyzerPlugin
into Salsa database.
Tuple Fields§
§0: Arc<dyn AnalyzerPlugin>
Trait Implementations§
Source§impl AnalyzerPlugin for AnalyzerPluginLongId
impl AnalyzerPlugin for AnalyzerPluginLongId
Source§fn diagnostics(
&self,
db: &dyn SemanticGroup,
module_id: ModuleId,
) -> Vec<PluginDiagnostic>
fn diagnostics( &self, db: &dyn SemanticGroup, module_id: ModuleId, ) -> Vec<PluginDiagnostic>
Runs the plugin on a module.
Source§fn declared_allows(&self) -> Vec<String>
fn declared_allows(&self) -> Vec<String>
Allows this plugin supplies.
Any allow the plugin supplies without declaring here are likely to cause a
compilation error for unknown allow.
If the plugin checks for patterns that you want to allow in some places, for example
#[allow(some_pattern)]
you will need to declare it here.Source§fn plugin_type_id(&self) -> TypeId
fn plugin_type_id(&self) -> TypeId
A
TypeId
of the plugin, used to compare the concrete types
of plugins given as trait objects.Source§impl Clone for AnalyzerPluginLongId
impl Clone for AnalyzerPluginLongId
Source§fn clone(&self) -> AnalyzerPluginLongId
fn clone(&self) -> AnalyzerPluginLongId
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 AnalyzerPluginLongId
impl Debug for AnalyzerPluginLongId
Source§impl Hash for AnalyzerPluginLongId
impl Hash for AnalyzerPluginLongId
Source§impl<'a> Intern<'a, dyn SemanticGroup + 'a, AnalyzerPluginId> for AnalyzerPluginLongId
impl<'a> Intern<'a, dyn SemanticGroup + 'a, AnalyzerPluginId> for AnalyzerPluginLongId
fn intern( self, db: &(impl Upcast<dyn SemanticGroup + 'a> + ?Sized), ) -> AnalyzerPluginId
Source§impl<'a> LookupIntern<'a, dyn SemanticGroup + 'a, AnalyzerPluginLongId> for AnalyzerPluginId
impl<'a> LookupIntern<'a, dyn SemanticGroup + 'a, AnalyzerPluginLongId> for AnalyzerPluginId
fn lookup_intern( &self, db: &(impl Upcast<dyn SemanticGroup + 'a> + ?Sized), ) -> AnalyzerPluginLongId
Source§impl PartialEq for AnalyzerPluginLongId
impl PartialEq for AnalyzerPluginLongId
impl Eq for AnalyzerPluginLongId
Auto Trait Implementations§
impl Freeze for AnalyzerPluginLongId
impl !RefUnwindSafe for AnalyzerPluginLongId
impl Send for AnalyzerPluginLongId
impl Sync for AnalyzerPluginLongId
impl Unpin for AnalyzerPluginLongId
impl !UnwindSafe for AnalyzerPluginLongId
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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