#[repr(transparent)]pub struct UIDatePickerMode(pub NSInteger);
Available on crate feature
UIDatePicker
only.Expand description
Tuple Fields§
§0: NSInteger
Implementations§
Source§impl UIDatePickerMode
impl UIDatePickerMode
Sourcepub const Time: Self
pub const Time: Self
Displays hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. 6 | 53 | PM)
Sourcepub const Date: Self
pub const Date: Self
Displays month, day, and year depending on the locale setting (e.g. November | 15 | 2007)
Sourcepub const DateAndTime: Self
pub const DateAndTime: Self
Displays date, hour, minute, and optionally AM/PM designation depending on the locale setting (e.g. Wed Nov 15 | 6 | 53 | PM)
Sourcepub const CountDownTimer: Self
pub const CountDownTimer: Self
Displays hour and minute (e.g. 1 | 53); only supported in UIDatePickerStyleWheels
Sourcepub const YearAndMonth: Self
pub const YearAndMonth: Self
Displays year and month depending on the locale setting (e.g. March | 2024); only supported in UIDatePickerStyleWheels
Trait Implementations§
Source§impl Clone for UIDatePickerMode
impl Clone for UIDatePickerMode
Source§fn clone(&self) -> UIDatePickerMode
fn clone(&self) -> UIDatePickerMode
Returns a duplicate of the value. Read more
1.0.0 · 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 UIDatePickerMode
impl Debug for UIDatePickerMode
Source§impl Encode for UIDatePickerMode
impl Encode for UIDatePickerMode
Source§impl Hash for UIDatePickerMode
impl Hash for UIDatePickerMode
Source§impl Ord for UIDatePickerMode
impl Ord for UIDatePickerMode
Source§fn cmp(&self, other: &UIDatePickerMode) -> Ordering
fn cmp(&self, other: &UIDatePickerMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UIDatePickerMode
impl PartialEq for UIDatePickerMode
Source§impl PartialOrd for UIDatePickerMode
impl PartialOrd for UIDatePickerMode
Source§impl RefEncode for UIDatePickerMode
impl RefEncode for UIDatePickerMode
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for UIDatePickerMode
impl Eq for UIDatePickerMode
impl StructuralPartialEq for UIDatePickerMode
Auto Trait Implementations§
impl Freeze for UIDatePickerMode
impl RefUnwindSafe for UIDatePickerMode
impl Send for UIDatePickerMode
impl Sync for UIDatePickerMode
impl Unpin for UIDatePickerMode
impl UnwindSafe for UIDatePickerMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.