pub struct CesrSuber<M: Matter> { /* private fields */ }Implementations§
Source§impl<M: Matter + Parsable> CesrSuber<M>
impl<M: Matter + Parsable> CesrSuber<M>
pub fn new( db: Arc<LMDBer>, subkey: &str, sep: Option<u8>, verify: bool, ) -> Result<Self, SuberError>
pub fn pin<K: AsRef<[u8]>>( &self, keys: &[K], val: &M, ) -> Result<bool, SuberError>
pub fn put<K: AsRef<[u8]>>( &self, keys: &[K], val: &M, ) -> Result<bool, SuberError>
pub fn get<K: AsRef<[u8]>>(&self, keys: &[K]) -> Result<Option<M>, SuberError>
pub fn rem<K: AsRef<[u8]>>(&self, keys: &[K]) -> Result<bool, SuberError>
pub fn trim<K: AsRef<[u8]>>( &self, keys: &[K], topive: bool, ) -> Result<bool, SuberError>
pub fn get_full_item_iter<K: AsRef<[u8]>>( &self, keys: &[K], topive: bool, ) -> Result<Vec<(Vec<Vec<u8>>, Vec<u8>)>, SuberError>
pub fn get_item_iter<K: AsRef<[u8]>>( &self, keys: &[K], topive: bool, ) -> Result<Vec<(Vec<Vec<u8>>, Vec<u8>)>, SuberError>
pub fn process_items( &self, items: Vec<(Vec<Vec<u8>>, Vec<u8>)>, ) -> Result<Vec<(Vec<Vec<u8>>, M)>, SuberError>
pub fn cnt_all(&self) -> Result<usize, SuberError>
Auto Trait Implementations§
impl<M> Freeze for CesrSuber<M>
impl<M> RefUnwindSafe for CesrSuber<M>where
M: RefUnwindSafe,
impl<M> Send for CesrSuber<M>where
M: Send,
impl<M> Sync for CesrSuber<M>where
M: Sync,
impl<M> Unpin for CesrSuber<M>where
M: Unpin,
impl<M> UnsafeUnpin for CesrSuber<M>
impl<M> UnwindSafe for CesrSuber<M>where
M: UnwindSafe,
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