Trait Editor

Source
pub trait Editor {
    // Required methods
    fn add(&mut self, new_data: AppData);
    fn remove(&mut self, index: usize);
    fn insert(&mut self, index: usize, new_data: AppData);
    fn replace(&mut self, index: usize, new_data: AppData);
    fn update<T: Display>(&mut self, index: usize, key: T, new_value: FQLType);
}

Required Methods§

Source

fn add(&mut self, new_data: AppData)

Source

fn remove(&mut self, index: usize)

Source

fn insert(&mut self, index: usize, new_data: AppData)

Source

fn replace(&mut self, index: usize, new_data: AppData)

Source

fn update<T: Display>(&mut self, index: usize, key: T, new_value: FQLType)

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§