pub trait UndoStrategy<T> {
type History: Default;
const UNDOABLE: bool;
// Required methods
fn unite(history: &mut Self::History, x: usize, y: usize, cells: &[T]);
fn undo_unite(history: &mut Self::History, cells: &mut [T]);
}
Required Associated Constants§
Required Associated Types§
Required Methods§
fn unite(history: &mut Self::History, x: usize, y: usize, cells: &[T])
fn undo_unite(history: &mut Self::History, cells: &mut [T])
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.