Skip to main content

Mutation

Trait Mutation 

Source
pub trait Mutation {
    // Required methods
    fn intent(&self) -> Intent;
    fn applied(&mut self, id: u64);
}
Expand description

A result that can be written: what Engine::apply needs from it and tells it.

Required Methods§

Source

fn intent(&self) -> Intent

What is recorded in history.

Source

fn applied(&mut self, id: u64)

Mark the result as written by history entry id.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Mutation for Answer

A written answer records the intent it wrote and the history entry.

Only a mutating answer reaches Apply: a Planned<Answer> is built from a mutating intent, so the query variants are unreachable here.

Source§

impl Mutation for Batch

Source§

impl Mutation for Move

Source§

impl Mutation for MoveSymbol

Source§

impl Mutation for Rename

Source§

impl Mutation for Rewrite