pub trait PickerBuilder: Sized {
// Required methods
fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self;
fn separators_before(self, indexes: impl IntoIterator<Item = usize>) -> Self;
fn menu(self) -> Self;
fn segmented(self) -> Self;
fn inline(self) -> Self;
fn style(self, style: PickerStyle) -> Self;
}Expand description
Required Methods§
Sourcefn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self
fn enabled<M>(self, v: impl IntoReactive<bool, M>) -> Self
Whether the picker takes input (default true); a constant or a reactive bool.
Sourcefn separators_before(self, indexes: impl IntoIterator<Item = usize>) -> Self
fn separators_before(self, indexes: impl IntoIterator<Item = usize>) -> Self
Insert native menu separators before these option indexes. Indexes still refer to options, so separators never change the selection binding. AppKit/UIKit menu style honors this; other backends and styles display the same options without grouping.
fn segmented(self) -> Self
fn inline(self) -> Self
fn style(self, style: PickerStyle) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".