Enum annotate_snippets::snippet::AnnotationType
source · pub enum AnnotationType {
Error,
Warning,
Info,
Note,
Help,
}
Expand description
Types of annotations.
Variants§
Error
Error annotations are displayed using red color and “^” character.
Warning
Warning annotations are displayed using blue color and “-” character.
Info
Note
Help
Trait Implementations§
source§impl Clone for AnnotationType
impl Clone for AnnotationType
source§fn clone(&self) -> AnnotationType
fn clone(&self) -> AnnotationType
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 AnnotationType
impl Debug for AnnotationType
source§impl From<AnnotationType> for DisplayAnnotationType
impl From<AnnotationType> for DisplayAnnotationType
source§fn from(at: AnnotationType) -> Self
fn from(at: AnnotationType) -> Self
Converts to this type from the input type.
source§impl PartialEq for AnnotationType
impl PartialEq for AnnotationType
source§fn eq(&self, other: &AnnotationType) -> bool
fn eq(&self, other: &AnnotationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AnnotationType
impl StructuralPartialEq for AnnotationType
Auto Trait Implementations§
impl RefUnwindSafe for AnnotationType
impl Send for AnnotationType
impl Sync for AnnotationType
impl Unpin for AnnotationType
impl UnwindSafe for AnnotationType
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