pub struct PickerProps {
pub separators_before: Vec<usize>,
pub options: Vec<String>,
pub selected: usize,
pub style: PickerStyle,
pub enabled: bool,
}Expand description
Full picker props (realize). style is set once at build; options, selected and
enabled patch (via PickerPatch).
Fields§
§separators_before: Vec<usize>Decorative boundaries before option indexes (not selectable options). Native menu grouping on AppKit/UIKit; ignored by other backends and non-menu styles.
options: Vec<String>§selected: usize§style: PickerStyle§enabled: boolWhether the picker takes input. Default true.
Trait Implementations§
Source§impl Clone for PickerProps
impl Clone for PickerProps
Source§fn clone(&self) -> PickerProps
fn clone(&self) -> PickerProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PickerProps
impl Debug for PickerProps
Source§impl Default for PickerProps
impl Default for PickerProps
Source§impl PartialEq for PickerProps
impl PartialEq for PickerProps
impl StructuralPartialEq for PickerProps
Auto Trait Implementations§
impl Freeze for PickerProps
impl RefUnwindSafe for PickerProps
impl Send for PickerProps
impl Sync for PickerProps
impl Unpin for PickerProps
impl UnsafeUnpin for PickerProps
impl UnwindSafe for PickerProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more