replace_or_add
function · ferroui-dynamic-data · v0.5.0
fn replace_or_add<T: Clone + PartialEq>(target: &mut dyn IList<T>, original: &T, replace_with: T)
Replaces original with replace_with, or adds it when original is not in the list
(ListEx.ReplaceOrAdd).
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.