Struct semilattice_database::Session
source · [−]pub struct Session { /* private fields */ }Implementations
sourceimpl Session
impl Session
pub fn new(
main_database: &Database,
name: impl Into<String>
) -> Result<Session, Error>
pub fn new_blank() -> Session
pub fn name(&mut self) -> &str
pub fn new_data(session_dir: &str) -> Result<SessionData, Error>
pub fn is_blank(&self) -> bool
pub fn begin_search(&self, collection_id: i32) -> SessionSearch<'_>
pub fn field_str<'a>(
&'a self,
database: &'a Database,
collection_id: i32,
row: u32,
key: &str
) -> &'_ str
Auto Trait Implementations
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnwindSafe for Session
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