pub struct EpistemicWorldView { /* private fields */ }Expand description
Non-empty set of accepted stable models used as the epistemic boundary.
Implementations§
Source§impl EpistemicWorldView
impl EpistemicWorldView
Sourcepub fn from_worlds(worlds: Vec<EpistemicWorld>) -> Result<Self>
pub fn from_worlds(worlds: Vec<EpistemicWorld>) -> Result<Self>
Construct a non-empty world view.
Sourcepub fn world_count(&self) -> usize
pub fn world_count(&self) -> usize
Return the number of worlds in this view.
Sourcepub fn evaluate(&self, lit: &EpistemicLiteral) -> TruthValue
pub fn evaluate(&self, lit: &EpistemicLiteral) -> TruthValue
Evaluate an epistemic literal over this world view.
Trait Implementations§
Source§impl Clone for EpistemicWorldView
impl Clone for EpistemicWorldView
Source§fn clone(&self) -> EpistemicWorldView
fn clone(&self) -> EpistemicWorldView
Returns a duplicate of the value. Read more
1.0.0 · 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 EpistemicWorldView
impl Debug for EpistemicWorldView
Source§impl PartialEq for EpistemicWorldView
impl PartialEq for EpistemicWorldView
impl Eq for EpistemicWorldView
impl StructuralPartialEq for EpistemicWorldView
Auto Trait Implementations§
impl Freeze for EpistemicWorldView
impl RefUnwindSafe for EpistemicWorldView
impl Send for EpistemicWorldView
impl Sync for EpistemicWorldView
impl Unpin for EpistemicWorldView
impl UnsafeUnpin for EpistemicWorldView
impl UnwindSafe for EpistemicWorldView
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more