Skip to main content

ListModifier

Type Alias ListModifier 

Source
pub type ListModifier<T> = Arc<dyn Fn(&mut Vec<T>) -> Option<Vec<T>> + Send + Sync>;
Expand description

Final arbitrary list transform used by ListMods. The callback receives the already delete/move-adjusted list. Returning None retains that list, including any in-place changes; returning Some replaces it.

Aliased Typeยง

pub struct ListModifier<T> { /* private fields */ }