[][src]Struct pretty_lint::PrettyLint

pub struct PrettyLint<'l> { /* fields omitted */ }

Show a pretty lint message similar to rustc's messages.

Implementations

impl<'l> PrettyLint<'l>[src]

pub fn new(source: &'l str) -> Self[src]

pub fn error(source: &'l str) -> Self[src]

pub fn warning(source: &'l str) -> Self[src]

pub fn info(source: &'l str) -> Self[src]

pub fn success(source: &'l str) -> Self[src]

pub fn with_message(self, message: &'l str) -> Self[src]

pub fn with_code(self, code: &'l str) -> Self[src]

pub fn with_severity(self, severity: Severity) -> Self[src]

pub fn with_file_path(self, file_path: &'l str) -> Self[src]

pub fn with_inline_message(self, msg: &'l str) -> Self[src]

pub fn with_notes(self, notes: &'l [&'l str]) -> Self[src]

pub fn at(self, span: Span) -> Self[src]

pub fn and(self, lint: PrettyLint<'l>) -> Self[src]

Trait Implementations

impl<'l> Debug for PrettyLint<'l>[src]

impl<'_> Display for PrettyLint<'_>[src]

Auto Trait Implementations

impl<'l> RefUnwindSafe for PrettyLint<'l>

impl<'l> Send for PrettyLint<'l>

impl<'l> Sync for PrettyLint<'l>

impl<'l> Unpin for PrettyLint<'l>

impl<'l> UnwindSafe for PrettyLint<'l>

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> 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.