[−][src]Struct pretty_lint::PrettyLint
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,