Struct objc2_foundation::NSCalendarUnit
source · #[repr(transparent)]pub struct NSCalendarUnit(pub NSUInteger);
Available on crate feature
NSCalendar
only.Tuple Fields§
§0: NSUInteger
Implementations§
source§impl NSCalendarUnit
impl NSCalendarUnit
pub const Era: Self = _
pub const Year: Self = _
pub const Month: Self = _
pub const Day: Self = _
pub const Hour: Self = _
pub const Minute: Self = _
pub const Second: Self = _
pub const Weekday: Self = _
pub const WeekdayOrdinal: Self = _
pub const Quarter: Self = _
pub const WeekOfMonth: Self = _
pub const WeekOfYear: Self = _
pub const YearForWeekOfYear: Self = _
pub const Nanosecond: Self = _
pub const Calendar: Self = _
pub const TimeZone: Self = _
pub const NSEraCalendarUnit: Self = _
👎Deprecated
pub const NSYearCalendarUnit: Self = _
👎Deprecated
pub const NSMonthCalendarUnit: Self = _
👎Deprecated
pub const NSDayCalendarUnit: Self = _
👎Deprecated
pub const NSHourCalendarUnit: Self = _
👎Deprecated
pub const NSMinuteCalendarUnit: Self = _
👎Deprecated
pub const NSSecondCalendarUnit: Self = _
👎Deprecated
pub const NSWeekCalendarUnit: Self = _
👎Deprecated: NSCalendarUnitWeekOfMonth or NSCalendarUnitWeekOfYear, depending on which you mean
pub const NSWeekdayCalendarUnit: Self = _
👎Deprecated
pub const NSWeekdayOrdinalCalendarUnit: Self = _
👎Deprecated
pub const NSQuarterCalendarUnit: Self = _
👎Deprecated
pub const NSWeekOfMonthCalendarUnit: Self = _
👎Deprecated
pub const NSWeekOfYearCalendarUnit: Self = _
👎Deprecated
pub const NSYearForWeekOfYearCalendarUnit: Self = _
👎Deprecated
pub const NSCalendarCalendarUnit: Self = _
👎Deprecated
pub const NSTimeZoneCalendarUnit: Self = _
👎Deprecated
Trait Implementations§
source§impl Clone for NSCalendarUnit
impl Clone for NSCalendarUnit
source§fn clone(&self) -> NSCalendarUnit
fn clone(&self) -> NSCalendarUnit
Returns a copy 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 NSCalendarUnit
impl Debug for NSCalendarUnit
source§impl Encode for NSCalendarUnit
impl Encode for NSCalendarUnit
source§impl Hash for NSCalendarUnit
impl Hash for NSCalendarUnit
source§impl Ord for NSCalendarUnit
impl Ord for NSCalendarUnit
source§fn cmp(&self, other: &NSCalendarUnit) -> Ordering
fn cmp(&self, other: &NSCalendarUnit) -> 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 NSCalendarUnit
impl PartialEq for NSCalendarUnit
source§fn eq(&self, other: &NSCalendarUnit) -> bool
fn eq(&self, other: &NSCalendarUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NSCalendarUnit
impl PartialOrd for NSCalendarUnit
source§fn partial_cmp(&self, other: &NSCalendarUnit) -> Option<Ordering>
fn partial_cmp(&self, other: &NSCalendarUnit) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl RefEncode for NSCalendarUnit
impl RefEncode for NSCalendarUnit
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 NSCalendarUnit
impl Eq for NSCalendarUnit
impl StructuralPartialEq for NSCalendarUnit
Auto Trait Implementations§
impl Freeze for NSCalendarUnit
impl RefUnwindSafe for NSCalendarUnit
impl Send for NSCalendarUnit
impl Sync for NSCalendarUnit
impl Unpin for NSCalendarUnit
impl UnwindSafe for NSCalendarUnit
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> 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.