Skip to main content

SelectionRegistrar

Trait SelectionRegistrar 

Source
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§

Source

fn add(self: Handle<Self>, app: &mut App, selectable: AnySelectable)

Adds selectable to the registrar.

Source

fn remove(self: Handle<Self>, app: &mut App, selectable: AnySelectable)

Removes selectable from the registrar.

Provided Methods§

Source

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".

Implementors§