pub struct KripkeFrame {
pub worlds: Vec<String>,
pub accessibility: Vec<(usize, usize)>,
}Expand description
Modal logic Kripke frame.
Fields§
§worlds: Vec<String>§accessibility: Vec<(usize, usize)>Implementations§
Source§impl KripkeFrame
impl KripkeFrame
pub fn new(worlds: Vec<&str>) -> Self
pub fn add_access(&mut self, w: usize, v: usize)
pub fn is_reflexive(&self) -> bool
pub fn is_transitive(&self) -> bool
pub fn is_symmetric(&self) -> bool
pub fn modal_logic_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for KripkeFrame
impl Clone for KripkeFrame
Source§fn clone(&self) -> KripkeFrame
fn clone(&self) -> KripkeFrame
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 moreAuto Trait Implementations§
impl Freeze for KripkeFrame
impl RefUnwindSafe for KripkeFrame
impl Send for KripkeFrame
impl Sync for KripkeFrame
impl Unpin for KripkeFrame
impl UnsafeUnpin for KripkeFrame
impl UnwindSafe for KripkeFrame
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