Skip to main content

RelIndexMerge

Trait RelIndexMerge 

Source
pub trait RelIndexMerge: Sized {
    // Required method
    fn move_index_contents(from: &mut Self, to: &mut Self);

    // Provided methods
    fn merge_delta_to_total_new_to_delta(
        new: &mut Self,
        delta: &mut Self,
        total: &mut Self,
    ) { ... }
    fn init(new: &mut Self, delta: &mut Self, total: &mut Self) { ... }
}

Required Methods§

Source

fn move_index_contents(from: &mut Self, to: &mut Self)

Provided Methods§

Source

fn merge_delta_to_total_new_to_delta( new: &mut Self, delta: &mut Self, total: &mut Self, )

Source

fn init(new: &mut Self, delta: &mut Self, total: &mut Self)

Called once at the start of the SCC

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl RelIndexMerge for ()

Source§

fn move_index_contents(_from: &mut Self, _to: &mut Self)

Source§

fn merge_delta_to_total_new_to_delta( _new: &mut Self, _delta: &mut Self, _total: &mut Self, )

Source§

impl<K: Eq + Hash, V> RelIndexMerge for HashMap<K, V, BuildHasherDefault<FxHasher>>

Source§

fn move_index_contents(from: &mut Self, to: &mut Self)

Source§

impl<T> RelIndexMerge for &mut T
where T: RelIndexMerge,

Source§

fn move_index_contents(from: &mut Self, to: &mut Self)

Source§

fn merge_delta_to_total_new_to_delta( new: &mut Self, delta: &mut Self, total: &mut Self, )

Source§

fn init(new: &mut Self, delta: &mut Self, total: &mut Self)

Implementors§