pub trait LinCowCellCapable<R, U> {
    // Required methods
    fn create_reader(&self) -> R;
    fn create_writer(&self) -> U;
    fn pre_commit(&mut self, new: U, prev: &R) -> R;
}
Expand description

Do not implement this. You don’t need this negativity in your life.

Required Methods§

source

fn create_reader(&self) -> R

Create the first reader snapshot for a new instance.

source

fn create_writer(&self) -> U

Create a writer that may be rolled back.

source

fn pre_commit(&mut self, new: U, prev: &R) -> R

Given the current active reader, and the writer to commit, update our main structure as mut self, and our previously linear generations based on what was updated.

Implementors§