Skip to main content

Selectable

Trait Selectable 

Source
pub trait Selectable {
    // Required method
    fn selected(self, selected: bool) -> Self;
}
Expand description

A control that can present itself as the current choice.

Required Methods§

Source

fn selected(self, selected: bool) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Selectable for Button

Source§

impl Selectable for GraphNode

Source§

impl Selectable for IconButton

Source§

impl Selectable for ListRow

Source§

impl Selectable for Radio

Source§

impl Selectable for Tag

A tag the keyboard has singled out, which is not the same as a tag that is gone: the selection is what the next keystroke would act on.