pub struct Model { /* private fields */ }Implementations§
Source§impl Model
impl Model
pub fn new() -> Self
pub fn set(&mut self, symbol: &Symbol, value: bool)
pub fn get(&self, symbol: &Symbol) -> Option<&bool>
pub fn eval<S: Sentence>(&self, sentence: &S) -> Option<bool>
pub fn assert_true<S: Sentence>(&self, sentence: &S)
pub fn assert_false<S: Sentence>(&self, sentence: &S)
Trait Implementations§
Auto Trait Implementations§
impl !Send for Model
impl !Sync for Model
impl Freeze for Model
impl RefUnwindSafe for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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