Struct x_lint::LintFormatter
source · pub struct LintFormatter<'l, 'a> { /* private fields */ }
Expand description
A lint formatter.
Lints write LintMessage
instances to this.
Implementations§
source§impl<'l, 'a> LintFormatter<'l, 'a>
impl<'l, 'a> LintFormatter<'l, 'a>
pub fn new( source: LintSource<'l>, messages: &'a mut Vec<(LintSource<'l>, LintMessage)> ) -> Self
Auto Trait Implementations§
impl<'l, 'a> RefUnwindSafe for LintFormatter<'l, 'a>
impl<'l, 'a> Send for LintFormatter<'l, 'a>
impl<'l, 'a> Sync for LintFormatter<'l, 'a>
impl<'l, 'a> Unpin for LintFormatter<'l, 'a>where 'l: 'a,
impl<'l, 'a> !UnwindSafe for LintFormatter<'l, 'a>
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> SafeBorrow<T> for Twhere
T: ?Sized,
impl<T> SafeBorrow<T> for Twhere T: ?Sized,
§fn borrow_replacement(ptr: &T) -> &T
fn borrow_replacement(ptr: &T) -> &T
Given
ptr
, which was obtained from a prior call to Self::borrow()
,
return a value with the same nominal lifetime which is guaranteed to
survive mutations to Self
. Read more