Trait concread::internals::lincowcell::LinCowCellCapable[][src]

pub trait LinCowCellCapable<R, U> {
    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

Create the first reader snapshot for a new instance.

Create a writer that may be rolled back.

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.