Skip to main content

put_by_id

fn put_by_id<T>(items: &mut Vec<T>, item: T, id_of: impl Fn(&T) -> Uuid)
Expand description

Replaces the item with item’s id, or appends item.