pub enum Mode {
Info,
Warning,
Error,
}Expand description
Controls the theme/styling of an Annotation.
Variants§
Info
An information annotation. Prints highlights with hyphens and cyan text when color is enabled.
§Example
1 | hello world, I am here.
| ----- note: all of the worldWarning
A warning annotation. Prints highlights with carets and yellow text when color is enabled.
§Example
1 | bigSum = 1 + 2 + (3 + 4)
| ^^^^^^^ brackets are not neededError
An error annotation. Prints highlights with carets and red text when color is enabled.
§Example
1 | if (if()) {
| ^^ expected an expressionImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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