Struct versatile_data::IdxSized
source · pub struct IdxSized<T> { /* private fields */ }Implementations§
source§impl<T> IdxSized<T>
impl<T> IdxSized<T>
pub fn new<P>(path: P) -> Result<IdxSized<T>, Error>where P: AsRef<Path>,
pub fn triee(&self) -> &Avltriee<T>
pub fn value(&self, row: u32) -> Option<&T>
pub fn insert(&mut self, value: T) -> Result<u32, Error>where T: Clone + Ord,
pub fn insert_same(&mut self, row: u32) -> Result<u32, Error>where T: Clone,
pub fn insert_unique(&mut self, value: T, found: Found) -> Result<u32, Error>
pub fn update(&mut self, row: u32, value: T) -> Result<u32, Error>where T: Ord + Clone,
pub fn update_manually<V>( &mut self, row: u32, make_value: V, found: Found ) -> Result<u32, Error>where V: FnMut() -> Result<T, Error>, T: Clone,
pub fn delete(&mut self, row: u32) -> Result<Removed<T>, Error>where T: Clone,
pub fn exists(&self, row: u32) -> bool
Auto Trait Implementations§
impl<T> RefUnwindSafe for IdxSized<T>where T: RefUnwindSafe,
impl<T> Send for IdxSized<T>where T: Send,
impl<T> Sync for IdxSized<T>where T: Sync,
impl<T> Unpin for IdxSized<T>
impl<T> UnwindSafe for IdxSized<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