pub struct ModuleNote {
pub message: String,
pub start: usize,
pub end: usize,
}Expand description
Something the analysis knows that is not an error — see Session::notes_about_the_modules.
The same offsets as FileDiagnostic and a different kind of claim: an import whose module this project does not
contain is not a mistake in the file, it is a fact about where the module lives. A consumer shows it as
information, and a type that merged the two would have to carry a severity field whose only honest values are
“error, for the errors” and “information, for this” — which is the same as having two types, with one of them
harder to read.
Fields§
§message: String§start: usize§end: usizeTrait Implementations§
Source§impl Clone for ModuleNote
impl Clone for ModuleNote
Source§impl Debug for ModuleNote
impl Debug for ModuleNote
impl Eq for ModuleNote
Source§impl PartialEq for ModuleNote
impl PartialEq for ModuleNote
impl StructuralPartialEq for ModuleNote
Auto Trait Implementations§
impl Forget for ModuleNote
impl Freeze for ModuleNote
impl RefUnwindSafe for ModuleNote
impl Send for ModuleNote
impl Sync for ModuleNote
impl Unpin for ModuleNote
impl UnsafeUnpin for ModuleNote
impl UnwindSafe for ModuleNote
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§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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more