pub struct Database<'cx> { /* private fields */ }Implementations§
Source§impl<'cx> Database<'cx>
impl<'cx> Database<'cx>
pub fn new(interner: &'cx DroplessInterner) -> Self
pub fn gcx(&self) -> &GlobalCx<'cx>
pub fn terms(&self) -> NamedTermViewIter<'_, 'cx>
pub fn clauses(&self) -> ClauseIter<'_, 'cx> ⓘ
pub fn insert_dataset(&mut self, dataset: ClauseDataset<Name<'cx>>)
pub fn insert_clause(&mut self, clause: Clause<Name<'cx>>)
pub fn query(&mut self, expr: Expr<Name<'cx>>) -> ProveCx<'_, 'cx>
pub fn commit(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<'cx> Freeze for Database<'cx>
impl<'cx> !RefUnwindSafe for Database<'cx>
impl<'cx> Send for Database<'cx>
impl<'cx> Sync for Database<'cx>
impl<'cx> Unpin for Database<'cx>
impl<'cx> !UnwindSafe for Database<'cx>
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