Trait avltriee::AvltrieeUpdate
source · 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§
fn convert_on_insert_unique(&mut self, input: &I) -> T
Provided Methods§
fn on_delete(&mut self, _row: NonZeroU32)
sourcefn insert(&mut self, value: &I) -> NonZeroU32where
T: Clone,
fn insert(&mut self, value: &I) -> NonZeroU32where
T: Clone,
Creates a new row and assigns a value to it.
sourcefn update(&mut self, row: NonZeroU32, value: &I)where
T: Clone,
fn update(&mut self, row: NonZeroU32, value: &I)where
T: Clone,
Updates the value in the specified row.
sourcefn delete(&mut self, row: NonZeroU32)
fn delete(&mut self, row: NonZeroU32)
Delete the specified row.
Object Safety§
This trait is not object safe.