Struct clarity_repl::clarity::diagnostic::Diagnostic[][src]

pub struct Diagnostic {
    pub level: Level,
    pub message: String,
    pub spans: Vec<Span>,
    pub suggestion: Option<String>,
}

Fields

level: Levelmessage: Stringspans: Vec<Span>suggestion: Option<String>

Implementations

impl Diagnostic[src]

pub fn err(error: &dyn DiagnosableError) -> Diagnostic[src]

pub fn add_span(
    &mut self,
    start_line: u32,
    start_column: u32,
    end_line: u32,
    end_column: u32
)
[src]

Trait Implementations

impl Debug for Diagnostic[src]

impl<'de> Deserialize<'de> for Diagnostic[src]

impl Display for Diagnostic[src]

impl PartialEq<Diagnostic> for Diagnostic[src]

impl Serialize for Diagnostic[src]

impl StructuralPartialEq for Diagnostic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,