Struct versatile_data::IdxSized
source · pub struct IdxSized<T> { /* private fields */ }
Implementations
sourceimpl<T> IdxSized<T>where
T: Default + Copy,
impl<T> IdxSized<T>where
T: Default + Copy,
pub fn new(path: &str) -> Result<IdxSized<T>, Error>
pub fn triee_mut(&mut self) -> &mut Avltriee<T>
pub fn triee(&self) -> &Avltriee<T>
pub fn value(&self, row: u32) -> Option<T>
pub fn insert(&mut self, target: T) -> Result<u32, Error>where
T: Default + Ord,
pub fn update(&mut self, row: u32, value: T) -> Result<u32, Error>where
T: Ord,
pub fn delete(&mut self, row: u32) -> Removed<T>
pub fn resize_to(&mut self, record_count: u32) -> Result<u32, Error>
pub fn max_rows(&self) -> u32
pub fn init(&mut self, data: T, root: u32) -> Result<u32, Error>
pub fn insert_unique(
&mut self,
data: T,
root: u32,
ord: Ordering,
insert_row: u32
) -> Result<u32, Error>where
T: Default,
pub fn insert_same(&mut self, root: u32, insert_row: u32) -> Result<u32, Error>
pub fn select_by_value(&self, value: &T) -> BTreeSet<u32, Global>where
T: Ord,
pub fn select_by_value_from_to(
&self,
value_min: &T,
value_max: &T
) -> BTreeSet<u32, Global>where
T: Ord,
pub fn select_by_value_from(&self, value_min: &T) -> BTreeSet<u32, Global>where
T: Ord,
pub fn select_by_value_to(&self, value_max: &T) -> BTreeSet<u32, Global>where
T: Ord,
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
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