Enum codespan_reporting::Severity[][src]

pub enum Severity {
    Bug,
    Error,
    Warning,
    Note,
    Help,
}

A severity level for diagnostic messages

These are ordered in the following way:

use codespan_reporting::Severity;

assert!(Severity::Bug > Severity::Error);
assert!(Severity::Error > Severity::Warning);
assert!(Severity::Warning > Severity::Note);
assert!(Severity::Note > Severity::Help);

Variants

An unexpected bug.

An error.

A warning.

A note.

A help message.

Methods

impl Severity
[src]

Return the termcolor to use when rendering messages of this diagnostic severity

A string that explains this diagnostic severity

Trait Implementations

impl Copy for Severity
[src]

impl Clone for Severity
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Severity
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Severity
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Severity
[src]

Formats the value using the given formatter. Read more

impl PartialOrd for Severity
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Display for Severity
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Severity

impl Sync for Severity