pub enum DiagnosticSelection {
All,
Policy,
Advisory,
}Variants§
Implementations§
Source§impl DiagnosticSelection
impl DiagnosticSelection
pub fn includes(self, diagnostic: &Diagnostic) -> bool
pub fn report_label(self) -> Option<&'static str>
Trait Implementations§
Source§impl Clone for DiagnosticSelection
impl Clone for DiagnosticSelection
Source§fn clone(&self) -> DiagnosticSelection
fn clone(&self) -> DiagnosticSelection
Returns a duplicate 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 DiagnosticSelection
impl Debug for DiagnosticSelection
Source§impl FromStr for DiagnosticSelection
impl FromStr for DiagnosticSelection
Source§impl PartialEq for DiagnosticSelection
impl PartialEq for DiagnosticSelection
impl Copy for DiagnosticSelection
impl Eq for DiagnosticSelection
impl StructuralPartialEq for DiagnosticSelection
Auto Trait Implementations§
impl Freeze for DiagnosticSelection
impl RefUnwindSafe for DiagnosticSelection
impl Send for DiagnosticSelection
impl Sync for DiagnosticSelection
impl Unpin for DiagnosticSelection
impl UnsafeUnpin for DiagnosticSelection
impl UnwindSafe for DiagnosticSelection
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