pub trait AvltrieeUpdate<T, I: ?Sized, A: AvltrieeAllocator<T>>: AsMut<Avltriee<T, I, A>> + AvltrieeSearch<T, I, A> {
    // Required method
    fn convert_on_insert_unique(&mut self, input: &I) -> T;

    // Provided methods
    fn on_delete(&mut self, _row: NonZeroU32) { ... }
    fn insert(&mut self, value: &I) -> NonZeroU32
       where T: Clone { ... }
    fn update(&mut self, row: NonZeroU32, value: &I)
       where T: Clone { ... }
    fn delete(&mut self, row: NonZeroU32) { ... }
}

Required Methods§

source

fn convert_on_insert_unique(&mut self, input: &I) -> T

Provided Methods§

source

fn on_delete(&mut self, _row: NonZeroU32)

source

fn insert(&mut self, value: &I) -> NonZeroU32
where T: Clone,

Creates a new row and assigns a value to it.

source

fn update(&mut self, row: NonZeroU32, value: &I)
where T: Clone,

Updates the value in the specified row.

source

fn delete(&mut self, row: NonZeroU32)

Delete the specified row.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: Ord + Clone, A: AvltrieeAllocator<T>> AvltrieeUpdate<T, T, A> for Avltriee<T, T, A>