pub fn state_mutate_cloned<F>(&mut self, id: &WidgetId, mut f: F)
    where
        F: FnMut(&mut Props),
    {
        if let Some(mut state) = self.states.get(id).cloned() {
            f(&mut state);
            self.state_changes.insert(id.to_owned(), state);
        }
    }
/// Get mutable access to the cloned [`Props`] of a widget in a closure and update the widget's
/// props to the value of the clone props after the closure modifies them
Get mutable access to the cloned [`Props`] of a widget in a closure and update the widget's
props to the value of the clone props after the closure modifies them
Get mutable access to the cloned [ ` Props ` ] of a widget in a closure and update the widget ' s props to the value of the clone props after the closure modifies them
pub fn state_mutate_cloned<F>(&mut self, id: &WidgetId, mut f: F)
    where
        F: FnMut(&mut Props),
    {
        if let Some(mut state) = self.states.get(id).cloned() {
            f(&mut state);
            self.state_changes.insert(id.to_owned(), state);
        }
    }
pub fn state_mutate_cloned < F > ( & mut self , id : & WidgetId , mut f : F ) where F : FnMut ( & mut Props ) , { if let Some ( mut state ) = self . states . get ( id ) . cloned ( ) { f ( & mut state ) ; self . state_changes . insert ( id . to_owned ( ) , state ) ; } }
Get mutable access to the cloned [`Props`] of a widget in a closure and update the widget's
props to the value of the clone props after the closure modifies them
Get mutable access to the cloned [ ` Props ` ] of a widget in a closure and update the widget ' s props to the value of the clone props after the closure modifies them
&mut self
id
&WidgetId
f
F
&mut self
id
&WidgetId
f
F