pub struct ReduceReport {
pub file: String,
pub line: u32,
pub column: u32,
pub message: Option<String>,
}Expand description
A violation a reduce phase asked for.
Carries a file of its own: a cross-file rule reports at the site the fact came from, which is by definition not “the file being checked” — there isn’t one.
Fields§
§file: StringPath of the file to report against, as the rule gave it.
line: u32One-based line.
column: u32One-based column.
message: Option<String>A message overriding the rule card’s, when the rule supplied one.
Trait Implementations§
Source§impl Clone for ReduceReport
impl Clone for ReduceReport
Source§fn clone(&self) -> ReduceReport
fn clone(&self) -> ReduceReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReduceReport
impl Debug for ReduceReport
impl Eq for ReduceReport
Source§impl PartialEq for ReduceReport
impl PartialEq for ReduceReport
impl StructuralPartialEq for ReduceReport
Auto Trait Implementations§
impl Freeze for ReduceReport
impl RefUnwindSafe for ReduceReport
impl Send for ReduceReport
impl Sync for ReduceReport
impl Unpin for ReduceReport
impl UnsafeUnpin for ReduceReport
impl UnwindSafe for ReduceReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.