pub struct MaximalConsistentSet {
pub id: usize,
pub formulas: Vec<ModalFormula>,
}Expand description
A maximally consistent set (MCS) represented as a set of formula indices.
Fields§
§id: usizeIndex identifying this MCS (world in the canonical model).
formulas: Vec<ModalFormula>Representative formulas in this MCS (for finite approximation).
Implementations§
Source§impl MaximalConsistentSet
impl MaximalConsistentSet
Sourcepub fn new(id: usize, formulas: Vec<ModalFormula>) -> Self
pub fn new(id: usize, formulas: Vec<ModalFormula>) -> Self
Create a new MCS with the given id and formulas.
Sourcepub fn contains(&self, phi: &ModalFormula) -> bool
pub fn contains(&self, phi: &ModalFormula) -> bool
Check if a formula is a member of this MCS.
Sourcepub fn add(&mut self, phi: ModalFormula)
pub fn add(&mut self, phi: ModalFormula)
Add a formula to this MCS (used during construction).
Trait Implementations§
Source§impl Clone for MaximalConsistentSet
impl Clone for MaximalConsistentSet
Source§fn clone(&self) -> MaximalConsistentSet
fn clone(&self) -> MaximalConsistentSet
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 MaximalConsistentSet
impl Debug for MaximalConsistentSet
Source§impl Hash for MaximalConsistentSet
impl Hash for MaximalConsistentSet
Source§impl PartialEq for MaximalConsistentSet
impl PartialEq for MaximalConsistentSet
impl Eq for MaximalConsistentSet
impl StructuralPartialEq for MaximalConsistentSet
Auto Trait Implementations§
impl Freeze for MaximalConsistentSet
impl RefUnwindSafe for MaximalConsistentSet
impl Send for MaximalConsistentSet
impl Sync for MaximalConsistentSet
impl Unpin for MaximalConsistentSet
impl UnsafeUnpin for MaximalConsistentSet
impl UnwindSafe for MaximalConsistentSet
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