pub trait Operation<T> {
    fn container(
        &mut self,
        id: Option<&Id>,
        operate_on_children: &mut dyn FnMut(&mut dyn Operation<T>)
    ); fn focusable(&mut self, _state: &mut dyn Focusable, _id: Option<&Id>) { ... } fn scrollable(&mut self, _state: &mut dyn Scrollable, _id: Option<&Id>) { ... } fn finish(&self) -> Outcome<T> { ... } }
Expand description

A piece of logic that can traverse the widget tree of an application in order to query or update some widget state.

Required Methods

Operates on a widget that contains other widgets.

The operate_on_children function can be called to return control to the widget tree and keep traversing it.

Provided Methods

Operates on a widget that can be focused.

Operates on a widget that can be scrolled.

Finishes the Operation and returns its Outcome.

Implementors