pub struct State {
pub tables: HashMap<String, Table>,
}Expand description
A snapshot of the whole database, shared by readers and swapped on commit.
Fields§
§tables: HashMap<String, Table>Implementations§
Source§impl State
impl State
pub fn empty() -> State
pub fn table(&self, name: &str) -> Option<&Table>
pub fn table_mut(&mut self, name: &str) -> Option<&mut Table>
pub fn contains_table(&self, name: &str) -> bool
pub fn contains_index(&self, name: &str) -> bool
pub fn remove_table(&mut self, name: &str) -> Option<Table>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnsafeUnpin for State
impl UnwindSafe for State
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