Struct semilattice_database::Database
source · [−]pub struct Database { /* private fields */ }Implementations
sourceimpl Database
impl Database
pub fn new(dir: &str) -> Result<Database, Error>
pub fn root_dir(&self) -> &str
pub fn session<'a>(&'a mut self, name: &'a str) -> Result<Session<'a>, Error>
pub fn collection(&self, id: i32) -> Option<&Collection>
pub fn collection_mut(&mut self, id: i32) -> Option<&mut Collection>
pub fn collection_id(&mut self, name: &str) -> Result<i32, Error>
pub fn relation(&self) -> &RelationIndex
Auto Trait Implementations
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more