pub enum DisplayAnnotationType {
None,
Error,
Warning,
Info,
Note,
Help,
}
Expand description
A type of the Annotation
which may impact the sigils, style or text displayed.
There are several ways in which the DisplayListFormatter
uses this information
when formatting the DisplayList
:
- An annotation may display the name of the type like
error
orinfo
. - An underline for
Error
may be^^^
while forWarning
it coule be---
. ColorStylesheet
may use different colors for different annotations.
Variants§
Trait Implementations§
source§impl Clone for DisplayAnnotationType
impl Clone for DisplayAnnotationType
source§fn clone(&self) -> DisplayAnnotationType
fn clone(&self) -> DisplayAnnotationType
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 DisplayAnnotationType
impl Debug for DisplayAnnotationType
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.