pub struct CFCalendar(/* private fields */);Expand description
Safe wrapper around a retained Core Foundation CFCalendar reference.
Implementations§
Source§impl CFCalendar
impl CFCalendar
Sourcepub fn from_raw(ptr: *mut c_void) -> Option<Self>
pub fn from_raw(ptr: *mut c_void) -> Option<Self>
Wraps a +1 retained CFCalendar pointer and returns None for null.
Sourcepub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
pub unsafe fn from_raw_retained(ptr: *mut c_void) -> Option<Self>
Retains a +0 borrowed CFCalendar pointer and wraps the resulting +1 reference.
§Safety
ptr must be NULL or a valid CFCalendar pointer.
Sourcepub fn into_cf_type(self) -> CFType
pub fn into_cf_type(self) -> CFType
Consumes this wrapper and returns the erased CFType.
Source§impl CFCalendar
impl CFCalendar
Sourcepub fn identifier(&self) -> CFString
pub fn identifier(&self) -> CFString
Calendar identifier.
Sourcepub fn time_zone(&self) -> CFTimeZone
pub fn time_zone(&self) -> CFTimeZone
Time zone attached to the calendar.
Sourcepub fn set_time_zone(&self, time_zone: &CFTimeZone)
pub fn set_time_zone(&self, time_zone: &CFTimeZone)
Update the calendar’s time zone.
Trait Implementations§
Source§impl AsCFType for CFCalendar
impl AsCFType for CFCalendar
Source§impl Clone for CFCalendar
impl Clone for CFCalendar
Source§fn clone(&self) -> CFCalendar
fn clone(&self) -> CFCalendar
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 CFCalendar
impl Debug for CFCalendar
Source§impl Hash for CFCalendar
impl Hash for CFCalendar
Source§impl PartialEq for CFCalendar
impl PartialEq for CFCalendar
Source§fn eq(&self, other: &CFCalendar) -> bool
fn eq(&self, other: &CFCalendar) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CFCalendar
impl StructuralPartialEq for CFCalendar
Auto Trait Implementations§
impl Freeze for CFCalendar
impl RefUnwindSafe for CFCalendar
impl !Send for CFCalendar
impl !Sync for CFCalendar
impl Unpin for CFCalendar
impl UnsafeUnpin for CFCalendar
impl UnwindSafe for CFCalendar
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