pub trait SelectionRegistrar: Sized + 'static {
// Required methods
fn add(self: Handle<Self>, app: &mut App, selectable: AnySelectable);
fn remove(self: Handle<Self>, app: &mut App, selectable: AnySelectable);
// Provided method
fn as_selection_registrar(self: Handle<Self>) -> AnySelectionRegistrar { ... }
}Expand description
A registrar that keeps track of the Selectables in a subtree.
Required Methods§
Sourcefn add(self: Handle<Self>, app: &mut App, selectable: AnySelectable)
fn add(self: Handle<Self>, app: &mut App, selectable: AnySelectable)
Adds selectable to the registrar.
Sourcefn remove(self: Handle<Self>, app: &mut App, selectable: AnySelectable)
fn remove(self: Handle<Self>, app: &mut App, selectable: AnySelectable)
Removes selectable from the registrar.
Provided Methods§
Sourcefn as_selection_registrar(self: Handle<Self>) -> AnySelectionRegistrar
fn as_selection_registrar(self: Handle<Self>) -> AnySelectionRegistrar
Erases this registrar, as Dart’s implicit upcast.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".