pub struct WfsResult {
pub true_set: HashMap<WfsAtom, PirNodeId>,
pub false_set: HashSet<WfsAtom>,
}Expand description
Result of WFS evaluation for an SCC
Fields§
§true_set: HashMap<WfsAtom, PirNodeId>Atoms known to be true with their provenance
false_set: HashSet<WfsAtom>Atoms known to be false
Implementations§
Source§impl WfsResult
impl WfsResult
Sourcepub fn truth_value(&self, atom: &WfsAtom) -> TruthValue
pub fn truth_value(&self, atom: &WfsAtom) -> TruthValue
Get the truth value of an atom
Sourcepub fn provenance(&self, atom: &WfsAtom) -> Option<PirNodeId>
pub fn provenance(&self, atom: &WfsAtom) -> Option<PirNodeId>
Get the provenance for a true atom
Sourcepub fn is_undefined(&self, atom: &WfsAtom) -> bool
pub fn is_undefined(&self, atom: &WfsAtom) -> bool
Check if an atom is undefined
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WfsResult
impl RefUnwindSafe for WfsResult
impl Send for WfsResult
impl Sync for WfsResult
impl Unpin for WfsResult
impl UnsafeUnpin for WfsResult
impl UnwindSafe for WfsResult
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