pub struct Date(/* private fields */);Expand description
An Objective-C date object.
C++ equivalent: NS::Date
Implementations§
Source§impl Date
impl Date
Sourcepub fn date_with_time_interval_since_now(secs: TimeInterval) -> Option<Self>
pub fn date_with_time_interval_since_now(secs: TimeInterval) -> Option<Self>
Create a date with a time interval since now.
C++ equivalent: static Date* dateWithTimeIntervalSinceNow(TimeInterval secs)
Trait Implementations§
Source§impl Referencing for Date
impl Referencing for Date
Source§fn as_mut_ptr(&self) -> *mut c_void
fn as_mut_ptr(&self) -> *mut c_void
Get the raw mutable pointer to the Objective-C object.
Source§fn retain(&self) -> Selfwhere
Self: Clone,
fn retain(&self) -> Selfwhere
Self: Clone,
Retain the object, incrementing its reference count. Read more
Source§fn autorelease(&self) -> Selfwhere
Self: Clone,
fn autorelease(&self) -> Selfwhere
Self: Clone,
Autorelease the object. Read more
Source§fn retain_count(&self) -> UInteger
fn retain_count(&self) -> UInteger
Get the retain count of the object. Read more
impl Send for Date
impl Sync for Date
Auto Trait Implementations§
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