pub enum Style {
Automatic,
Compact,
Inline,
}Expand description
How the picker presents (docs/datepicker.md has the per-toolkit table). Like PickerStyle,
each intent maps to the platform’s closest idiomatic control, so chrome differs per platform.
Variants§
Automatic
The platform default: Style::Compact everywhere today.
Compact
A field/button showing the value that summons a transient chooser (NSDatePicker textFieldAndStepper / UIDatePicker .compact / a Material dialog launcher / QDateEdit with calendar popup / CalendarDatePicker flyout / GtkMenuButton+calendar popover / ArkUI CalendarPicker).
Inline
An embedded calendar / clock / wheels (NSDatePicker graphical / UIDatePicker .inline / framework DatePicker+TimePicker widgets / QCalendarWidget / CalendarView / GtkCalendar / ArkUI DatePicker wheels).
Trait Implementations§
impl Copy for Style
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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