#[repr(C)]pub struct CFTimeZone { /* private fields */ }
Available on crate feature
CFDate
only.Expand description
Implementations§
Source§impl CFTimeZone
impl CFTimeZone
pub fn system() -> Option<CFRetained<CFTimeZone>>
Available on crate feature
CFTimeZone
only.pub unsafe fn reset_system()
Available on crate feature
CFTimeZone
only.pub fn default() -> Option<CFRetained<CFTimeZone>>
Available on crate feature
CFTimeZone
only.pub fn set_default(self: &CFTimeZone)
Available on crate feature
CFTimeZone
only.pub fn known_names() -> Option<CFRetained<CFArray>>
Available on crate features
CFTimeZone
and CFArray
only.pub fn abbreviation_dictionary() -> Option<CFRetained<CFDictionary>>
Available on crate features
CFTimeZone
and CFDictionary
only.pub unsafe fn set_abbreviation_dictionary(dict: Option<&CFDictionary>)
Available on crate features
CFTimeZone
and CFDictionary
only.pub unsafe fn new( allocator: Option<&CFAllocator>, name: Option<&CFString>, data: Option<&CFData>, ) -> Option<CFRetained<CFTimeZone>>
Available on crate features
CFTimeZone
and CFData
only.pub fn with_time_interval_from_gmt( allocator: Option<&CFAllocator>, ti: CFTimeInterval, ) -> Option<CFRetained<CFTimeZone>>
Available on crate feature
CFTimeZone
only.pub fn with_name( allocator: Option<&CFAllocator>, name: Option<&CFString>, try_abbrev: bool, ) -> Option<CFRetained<CFTimeZone>>
Available on crate feature
CFTimeZone
only.pub fn name(self: &CFTimeZone) -> Option<CFRetained<CFString>>
Available on crate feature
CFTimeZone
only.pub fn data(self: &CFTimeZone) -> Option<CFRetained<CFData>>
Available on crate features
CFTimeZone
and CFData
only.pub fn seconds_from_gmt(self: &CFTimeZone, at: CFAbsoluteTime) -> CFTimeInterval
Available on crate feature
CFTimeZone
only.pub fn abbreviation( self: &CFTimeZone, at: CFAbsoluteTime, ) -> Option<CFRetained<CFString>>
Available on crate feature
CFTimeZone
only.pub fn is_daylight_saving_time(self: &CFTimeZone, at: CFAbsoluteTime) -> bool
Available on crate feature
CFTimeZone
only.pub fn daylight_saving_time_offset( self: &CFTimeZone, at: CFAbsoluteTime, ) -> CFTimeInterval
Available on crate feature
CFTimeZone
only.pub fn next_daylight_saving_time_transition( self: &CFTimeZone, at: CFAbsoluteTime, ) -> CFAbsoluteTime
Available on crate feature
CFTimeZone
only.Source§impl CFTimeZone
impl CFTimeZone
pub fn localized_name( self: &CFTimeZone, style: CFTimeZoneNameStyle, locale: Option<&CFLocale>, ) -> Option<CFRetained<CFString>>
Available on crate features
CFTimeZone
and CFLocale
only.Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
pub fn downcast_ref<T: ConcreteType>(&self) -> Option<&T>
Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CFTimeZone
impl AsRef<AnyObject> for CFTimeZone
Source§impl AsRef<CFTimeZone> for CFTimeZone
impl AsRef<CFTimeZone> for CFTimeZone
Source§impl AsRef<CFType> for CFTimeZone
impl AsRef<CFType> for CFTimeZone
Source§impl Borrow<AnyObject> for CFTimeZone
impl Borrow<AnyObject> for CFTimeZone
Source§impl Borrow<CFType> for CFTimeZone
impl Borrow<CFType> for CFTimeZone
Source§impl ConcreteType for CFTimeZone
Available on crate feature CFTimeZone
only.
impl ConcreteType for CFTimeZone
Available on crate feature
CFTimeZone
only.Source§impl Debug for CFTimeZone
impl Debug for CFTimeZone
Source§impl Deref for CFTimeZone
impl Deref for CFTimeZone
Source§impl Hash for CFTimeZone
impl Hash for CFTimeZone
Source§impl Message for CFTimeZone
impl Message for CFTimeZone
Source§impl PartialEq for CFTimeZone
impl PartialEq for CFTimeZone
Source§impl RefEncode for CFTimeZone
impl RefEncode for CFTimeZone
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CFTimeZone
impl Type for CFTimeZone
Source§fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
fn retain(&self) -> CFRetained<Self> ⓘwhere
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self> ⓘwhere
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation
crate. Read moreimpl Eq for CFTimeZone
impl Send for CFTimeZone
impl Sync for CFTimeZone
Auto Trait Implementations§
impl !Freeze for CFTimeZone
impl !RefUnwindSafe for CFTimeZone
impl !Unpin for CFTimeZone
impl !UnwindSafe for CFTimeZone
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