Skip to main content

push_bounded

Function push_bounded 

Source
fn push_bounded(stack: &mut Vec<Model>, state: Model)
Expand description

Push state onto a bounded history stack, evicting the oldest entry once UNDO_DEPTH is reached.