pub struct DiagnosticIndex { /* private fields */ }Implementations§
Source§impl DiagnosticIndex
impl DiagnosticIndex
pub fn new() -> Self
pub fn add_diagnostic_action( &mut self, file_id: FileId, diagnostic: DiagnosticAction, )
pub fn add_file_diagnostic_disabled( &mut self, file_id: FileId, code: DiagnosticCode, )
pub fn add_file_diagnostic_enabled( &mut self, file_id: FileId, code: DiagnosticCode, )
pub fn get_diagnostics_actions( &self, file_id: FileId, ) -> Option<&Vec<DiagnosticAction>>
pub fn add_diagnostic(&mut self, file_id: FileId, diagnostic: AnalyzeError)
pub fn get_diagnostics(&self, file_id: &FileId) -> Option<&Vec<AnalyzeError>>
pub fn is_file_diagnostic_code_disabled( &self, file_id: &FileId, code: &DiagnosticCode, range: &TextRange, ) -> bool
pub fn is_file_disabled(&self, file_id: &FileId, code: &DiagnosticCode) -> bool
pub fn is_file_enabled(&self, file_id: &FileId, code: &DiagnosticCode) -> bool
Trait Implementations§
Source§impl Debug for DiagnosticIndex
impl Debug for DiagnosticIndex
Auto Trait Implementations§
impl Freeze for DiagnosticIndex
impl RefUnwindSafe for DiagnosticIndex
impl Send for DiagnosticIndex
impl Sync for DiagnosticIndex
impl Unpin for DiagnosticIndex
impl UnwindSafe for DiagnosticIndex
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