pub struct SimilarAtoms {
pub a: String,
pub b: String,
pub reason: &'static str,
}Expand description
An advisory hint that two atom names look like the same atom typed two
different ways (e.g. is_rolled_back vs is rolled_back). Purely a
suggestion — it never changes the verdict, the warning pool, or the exit
code. It exists to catch the silent-typo trap where a misspelling creates a
new UNKNOWN atom that quietly never links to the rest of the program.
Fields§
§a: StringOne atom’s human label (subject predicate [object]).
b: StringThe other atom’s human label.
reason: &'static strWhy the pair was flagged (a short, fixed explanation).
Trait Implementations§
Source§impl Clone for SimilarAtoms
impl Clone for SimilarAtoms
Source§fn clone(&self) -> SimilarAtoms
fn clone(&self) -> SimilarAtoms
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 SimilarAtoms
impl Debug for SimilarAtoms
impl Eq for SimilarAtoms
Source§impl PartialEq for SimilarAtoms
impl PartialEq for SimilarAtoms
Source§fn eq(&self, other: &SimilarAtoms) -> bool
fn eq(&self, other: &SimilarAtoms) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SimilarAtoms
Auto Trait Implementations§
impl Freeze for SimilarAtoms
impl RefUnwindSafe for SimilarAtoms
impl Send for SimilarAtoms
impl Sync for SimilarAtoms
impl Unpin for SimilarAtoms
impl UnsafeUnpin for SimilarAtoms
impl UnwindSafe for SimilarAtoms
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