pub struct Picker { /* private fields */ }Expand description
Labels for the native date/time picker; unset ones keep the shell defaults. The web shell opens the browser’s own picker, which draws its chrome in the browser’s language and ignores these.
Implementations§
Source§impl Picker
impl Picker
pub fn new() -> Self
Sourcepub fn title(self, title: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
The picker’s title — shown as the iOS action sheet title. Android sets it as the dialog title, but the Material date/time picker on current API levels doesn’t display it; the web picker ignores it.
Sourcepub fn confirm_label(self, label: impl Into<String>) -> Self
pub fn confirm_label(self, label: impl Into<String>) -> Self
The button that accepts the picked value.
Sourcepub fn cancel_label(self, label: impl Into<String>) -> Self
pub fn cancel_label(self, label: impl Into<String>) -> Self
The button that dismisses the picker without a value.
Trait Implementations§
impl StructuralPartialEq for Picker
Auto Trait Implementations§
impl Forget for Picker
impl Freeze for Picker
impl Move for Picker
impl RefUnwindSafe for Picker
impl Send for Pickerwhere
RawVecInner: Send,
impl Sync for Pickerwhere
RawVecInner: Sync,
impl Unpin for Picker
impl UnsafeUnpin for Picker
impl UnwindSafe for Pickerwhere
RawVecInner: UnwindSafe,
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