pub struct Database<T> { /* private fields */ }Implementations§
Source§impl<T: Atom> Database<T>
impl<T: Atom> Database<T>
pub fn new() -> Self
pub fn terms(&self) -> NamedTermViewIter<'_, T>
pub fn clauses(&self) -> ClauseIter<'_, T> ⓘ
pub fn insert_dataset(&mut self, dataset: ClauseDataset<T>)
Sourcepub fn insert_clause(&mut self, clause: Clause<T>)
pub fn insert_clause(&mut self, clause: Clause<T>)
Inserts the given clause to the DB.
pub fn query(&mut self, expr: Expr<T>) -> ProveCx<'_, T>
pub fn commit(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Database<T>
impl<T> RefUnwindSafe for Database<T>where
T: RefUnwindSafe,
impl<T> Send for Database<T>where
T: Send,
impl<T> Sync for Database<T>where
T: Sync,
impl<T> Unpin for Database<T>where
T: Unpin,
impl<T> UnsafeUnpin for Database<T>
impl<T> UnwindSafe for Database<T>where
T: UnwindSafe,
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