pub struct OrphanFact {
pub atom: String,
pub value: Value,
pub origin: Origin,
}Expand description
An advisory lint: a FACT/NOT/ASSUME whose atom appears in no
PREMISE or RULE. Such an assertion is logically inert — nothing checks it
and nothing is derived from it, so it can never produce a CONFLICT, WARNING or
DERIVED. It is almost always a typo’d atom name or a leftover line. Purely
informational — it never changes the verdict, the warning pool, or the exit
code (a program full of orphans is still perfectly CONSISTENT).
Fields§
§atom: StringThe atom’s human label (subject predicate [object]), without polarity.
value: ValueThe asserted value — False means the surface line was NOT/ASSUME NOT.
origin: OriginProvenance of the inert assertion (source, line, kind = FACT/NOT/ASSUME).
Trait Implementations§
Source§impl Clone for OrphanFact
impl Clone for OrphanFact
Source§fn clone(&self) -> OrphanFact
fn clone(&self) -> OrphanFact
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 OrphanFact
impl Debug for OrphanFact
impl Eq for OrphanFact
Source§impl PartialEq for OrphanFact
impl PartialEq for OrphanFact
Source§fn eq(&self, other: &OrphanFact) -> bool
fn eq(&self, other: &OrphanFact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OrphanFact
Auto Trait Implementations§
impl Freeze for OrphanFact
impl RefUnwindSafe for OrphanFact
impl Send for OrphanFact
impl Sync for OrphanFact
impl Unpin for OrphanFact
impl UnsafeUnpin for OrphanFact
impl UnwindSafe for OrphanFact
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