Skip to main content

for_btreeset_get_mut

Function for_btreeset_get_mut 

Source
pub fn for_btreeset_get_mut<T>(
    value: T,
) -> WritableOptionalKeyPath<BTreeSet<T>, T, impl for<'r> Fn(&'r mut BTreeSet<T>) -> Option<&'r mut T>>
where T: Ord + Clone + 'static,
Expand description

Create a writable keypath for getting a mutable value from BTreeSet Note: BTreeSet doesn’t support mutable access to elements, but we provide it for consistency