pub struct IdxSized<T> { /* private fields */ }

Implementations§

source§

impl<T> IdxSized<T>

source

pub fn new<P>(path: P) -> Result<IdxSized<T>, Error>where
    P: AsRef<Path>,

source

pub fn triee_mut(&mut self) -> &mut Avltriee<T>

source

pub fn triee(&self) -> &Avltriee<T>

source

pub fn value(&self, row: u32) -> Option<T>where
    T: Clone,

source

pub fn insert(&mut self, target: T) -> Result<u32, Error>where
    T: Default + Clone + Ord,

source

pub fn update(&mut self, row: u32, value: T) -> Result<u32, Error>where
    T: Ord + Clone + Default,

source

pub fn delete(&mut self, row: u32) -> Removed<T>where
    T: Default + Clone,

source

pub fn resize_to(&mut self, record_count: u32) -> Result<u32, Error>

source

pub fn max_rows(&self) -> Result<u32, Error>

source

pub fn init(&mut self, data: T, root: u32) -> Result<u32, Error>where
    T: Default,

source

pub fn insert_unique(
    &mut self,
    data: T,
    parent: u32,
    ord: Ordering,
    insert_row: u32
) -> Result<u32, Error>where
    T: Default,

source

pub fn insert_same(&mut self, parent: u32, insert_row: u32) -> Result<u32, Error>where
    T: Clone,

source

pub fn select_by_value(&self, value: &T) -> BTreeSet<u32, Global>where
    T: Ord,

source

pub fn select_by_value_from_to(
    &self,
    value_min: &T,
    value_max: &T
) -> BTreeSet<u32, Global>where
    T: Ord,

source

pub fn select_by_value_from(&self, value_min: &T) -> BTreeSet<u32, Global>where
    T: Ord,

source

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§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere
    V: MultiLane<T>,

§

fn vzip(self) -> V