pub fn state_mutate<F>(&mut self, id: &WidgetId, mut f: F)
    where
        F: FnMut(&Props) -> Props,
    {
        if let Some(state) = self.states.get(id) {
            self.state_changes.insert(id.to_owned(), f(state));
        }
    }
/// Get read access to the given widget's [`Props`] in a closure and update the widget's props
/// to the props that were returned by the closure
Get read access to the given widget's [`Props`] in a closure and update the widget's props
to the props that were returned by the closure
Get read access to the given widget ' s [ ` Props ` ] in a closure and update the widget ' s props to the props that were returned by the closure
pub fn state_mutate<F>(&mut self, id: &WidgetId, mut f: F)
    where
        F: FnMut(&Props) -> Props,
    {
        if let Some(state) = self.states.get(id) {
            self.state_changes.insert(id.to_owned(), f(state));
        }
    }
pub fn state_mutate < F > ( & mut self , id : & WidgetId , mut f : F ) where F : FnMut ( & Props ) -> Props , { if let Some ( state ) = self . states . get ( id ) { self . state_changes . insert ( id . to_owned ( ) , f ( state ) ) ; } }
Get read access to the given widget's [`Props`] in a closure and update the widget's props
to the props that were returned by the closure
Get read access to the given widget ' s [ ` Props ` ] in a closure and update the widget ' s props to the props that were returned by the closure
&mut self
id
&WidgetId
f
F
&mut self
id
&WidgetId
f
F