#[repr(C)]pub struct CFGregorianDate {
pub year: i32,
pub month: i8,
pub day: i8,
pub hour: i8,
pub minute: i8,
pub second: c_double,
}Available on crate feature
CFDate only.Expand description
Fields§
§year: i32§month: i8§day: i8§hour: i8§minute: i8§second: c_doubleImplementations§
Source§impl CFGregorianDate
impl CFGregorianDate
pub fn is_valid(self, unit_flags: CFOptionFlags) -> bool
👎Deprecated:
Use CFCalendar or NSCalendar API instead
Sourcepub unsafe fn absolute_time(self, tz: Option<&CFTimeZone>) -> CFAbsoluteTime
👎Deprecated: Use CFCalendar or NSCalendar API instead
pub unsafe fn absolute_time(self, tz: Option<&CFTimeZone>) -> CFAbsoluteTime
Use CFCalendar or NSCalendar API instead
§Safety
tz might not allow None.
Trait Implementations§
Source§impl Clone for CFGregorianDate
impl Clone for CFGregorianDate
Source§fn clone(&self) -> CFGregorianDate
fn clone(&self) -> CFGregorianDate
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 CFGregorianDate
impl Debug for CFGregorianDate
Source§impl Encode for CFGregorianDate
Available on crate feature objc2 only.
impl Encode for CFGregorianDate
Available on crate feature
objc2 only.Source§impl PartialEq for CFGregorianDate
impl PartialEq for CFGregorianDate
Source§fn eq(&self, other: &CFGregorianDate) -> bool
fn eq(&self, other: &CFGregorianDate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl RefEncode for CFGregorianDate
Available on crate feature objc2 only.
impl RefEncode for CFGregorianDate
Available on crate feature
objc2 only.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 CFGregorianDate
impl StructuralPartialEq for CFGregorianDate
Auto Trait Implementations§
impl Freeze for CFGregorianDate
impl RefUnwindSafe for CFGregorianDate
impl Send for CFGregorianDate
impl Sync for CFGregorianDate
impl Unpin for CFGregorianDate
impl UnsafeUnpin for CFGregorianDate
impl UnwindSafe for CFGregorianDate
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.