AvltrieeUpdate

Trait AvltrieeUpdate 

Source
pub trait AvltrieeUpdate<T, I, A>: AsMut<Avltriee<T, I, A>> + AvltrieeSearch<T, I, A>
where A: AvltrieeAllocator<T>, I: ?Sized,
{ // Required method fn convert_on_insert_unique(&mut self, input: &I) -> T; // Provided methods fn on_delete(&mut self, _row: NonZero<u32>) { ... } fn insert(&mut self, value: &I) -> NonZero<u32> where T: Clone { ... } fn update(&mut self, row: NonZero<u32>, value: &I) where T: Clone { ... } fn delete(&mut self, row: NonZero<u32>) { ... } }

Required Methods§

Source

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

Provided Methods§

Source

fn on_delete(&mut self, _row: NonZero<u32>)

Source

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

Creates a new row and assigns a value to it.

Source

fn update(&mut self, row: NonZero<u32>, value: &I)
where T: Clone,

Updates the value in the specified row.

Source

fn delete(&mut self, row: NonZero<u32>)

Delete the specified row.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§