pub trait UserLocationWithPluginNotes<'db> {
// Required method
fn user_location_with_plugin_notes(
&self,
db: &'db dyn Database,
file_notes: &PluginFileDiagnosticNotes<'db>,
) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>);
}Required Methods§
Sourcefn user_location_with_plugin_notes(
&self,
db: &'db dyn Database,
file_notes: &PluginFileDiagnosticNotes<'db>,
) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>)
fn user_location_with_plugin_notes( &self, db: &'db dyn Database, file_notes: &PluginFileDiagnosticNotes<'db>, ) -> (SpanInFile<'db>, Vec<DiagnosticNote<'db>>)
Gets the location of the originating user code,
along with DiagnosticNotes for this translation.
The notes are collected from the parent files of the originating location.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".