Skip to main content

Selectable

Trait Selectable 

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

A component with v3’s controlled isSelected prop.

Required Methods§

Source

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

isSelected — the controlled selection state.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§