[][src]Struct selene_lib::rules::Diagnostic

pub struct Diagnostic {
    pub code: &'static str,
    pub message: String,
    pub notes: Vec<String>,
    pub primary_label: Label,
    pub secondary_labels: Vec<Label>,
}

Fields

code: &'static strmessage: Stringnotes: Vec<String>primary_label: Labelsecondary_labels: Vec<Label>

Implementations

impl Diagnostic[src]

pub fn new(code: &'static str, message: String, primary_label: Label) -> Self[src]

pub fn new_complete(
    code: &'static str,
    message: String,
    primary_label: Label,
    notes: Vec<String>,
    secondary_labels: Vec<Label>
) -> Self
[src]

pub fn into_codespan_diagnostic(
    self,
    file_id: FileId,
    severity: CodespanSeverity
) -> CodespanDiagnostic<FileId>
[src]

pub fn start_position(&self) -> u32[src]

Trait Implementations

impl Debug 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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>,