Skip to main content

shared_with_mut

Function shared_with_mut 

Source
pub fn shared_with_mut<T, R>(
    shared: &Shared<T>,
    f: impl FnOnce(&mut T) -> R,
) -> R
where T: Clone + PartialEq,
Expand description

[Shared::with_mut] clones feature state once to detect changes.