Skip to main content

Selectable

Trait Selectable 

Source
pub trait Selectable: Sized {
    // Required methods
    fn selected(self, selected: bool) -> Self;
    fn is_selected(&self) -> bool;

    // Provided method
    fn secondary_selected(self, _: bool) -> Self { ... }
}
Expand description

An element or component that exposes controlled selected state.

Required Methods§

Source

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

Source

fn is_selected(&self) -> bool

Provided Methods§

Source

fn secondary_selected(self, _: bool) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§