Struct semilattice_database::IdxFile
pub struct IdxFile<T> { /* private fields */ }Implementations§
§impl<T> IdxFile<T>
impl<T> IdxFile<T>
pub fn new<P>(path: P) -> Result<IdxFile<T>, Error>where P: AsRef<Path>,
pub fn triee(&self) -> &Avltriee<T>
pub fn triee_mut(&mut self) -> &mut Avltriee<T>
pub fn value(&self, row: u32) -> Option<&T>
pub fn insert(&mut self, value: T) -> Result<u32, Error>where T: Ord + Clone,
pub fn update(&mut self, row: u32, value: T) -> Result<u32, Error>where T: Ord + Clone,
pub fn insert_unique(&mut self, value: T, found: Found) -> Result<u32, Error>
pub fn insert_uord<H, I>(holder: &mut H, input: I) -> Result<u32, Error>where T: Clone, H: UOrd<T, I> + RefIdxFile<T>,
pub fn update_uord<H, I>( holder: &mut H, row: u32, input: I ) -> Result<u32, Error>where T: Clone, H: UOrd<T, I> + RefIdxFile<T>,
pub fn delete(&mut self, row: u32) -> Result<(), Error>
pub fn exists(&self, row: u32) -> bool
Auto Trait Implementations§
impl<T> RefUnwindSafe for IdxFile<T>where T: RefUnwindSafe,
impl<T> Send for IdxFile<T>where T: Send,
impl<T> Sync for IdxFile<T>where T: Sync,
impl<T> Unpin for IdxFile<T>
impl<T> UnwindSafe for IdxFile<T>where T: 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