Skip to main content

IntoPickerOptions

Trait IntoPickerOptions 

Source
pub trait IntoPickerOptions<T: 'static, M> {
    // Required method
    fn into_picker_options(self) -> PickerOptions<T>;
}
Expand description

Anything picker takes as its options: an array or Vec of (value, title) pairs, or a closure that derives the list and re-runs whenever its reactive reads change. Titles take the same sources as a label. The two-level marker is the same E0119 dodge as IntoText.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl<T: 'static, X: IntoText<M>, M, const N: usize> IntoPickerOptions<T, (FixedOptionsMark, M)> for [(T, X); N]

Source§

impl<T: 'static, X: IntoText<M>, M> IntoPickerOptions<T, (FixedOptionsMark, M)> for Vec<(T, X)>

Implementors§

Source§

impl<T: 'static, X: IntoText<M>, M, F> IntoPickerOptions<T, (DerivedOptionsMark, M)> for F
where F: Fn() -> Vec<(T, X)> + 'static,

Day API ↩ Guides· daybrite.dev