Struct versatile_data::IdxFile
source · pub struct IdxFile<T> { /* private fields */ }
Implementations§
source§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 new_row(&mut self, row: u32) -> Result<u32, Error>
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 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