pub struct SimpleDatabase { /* private fields */ }Expand description
A simple in-memory query database implementation.
Implementations§
Trait Implementations§
Source§impl Default for SimpleDatabase
impl Default for SimpleDatabase
Source§impl QueryDatabase for SimpleDatabase
impl QueryDatabase for SimpleDatabase
Source§fn current_revision(&self) -> Revision
fn current_revision(&self) -> Revision
Get the current revision of the database.
Source§fn increment_revision(&self) -> Revision
fn increment_revision(&self) -> Revision
Increment the revision (called when inputs change).
Source§fn mark_in_progress(&self, id: QueryId)
fn mark_in_progress(&self, id: QueryId)
Mark a query as in-progress (for cycle detection).
Source§fn unmark_in_progress(&self, id: QueryId)
fn unmark_in_progress(&self, id: QueryId)
Unmark a query as in-progress.
Source§fn is_in_progress(&self, id: QueryId) -> bool
fn is_in_progress(&self, id: QueryId) -> bool
Check if a query is in progress (cycle detection).
Source§fn record_dependency(&self, from: QueryId, to: QueryId)
fn record_dependency(&self, from: QueryId, to: QueryId)
Record a dependency from the current query to another.
Auto Trait Implementations§
impl !Freeze for SimpleDatabase
impl !RefUnwindSafe for SimpleDatabase
impl Send for SimpleDatabase
impl Sync for SimpleDatabase
impl Unpin for SimpleDatabase
impl UnwindSafe for SimpleDatabase
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