#[repr(C)]pub struct CFString { /* private fields */ }
Available on crate feature
CFBase
only.Expand description
Implementations§
Source§impl CFString
impl CFString
Sourcepub fn from_str(string: &str) -> CFRetained<CFString> ⓘ
Available on crate feature CFString
only.
pub fn from_str(string: &str) -> CFRetained<CFString> ⓘ
CFString
only.Creates a new CFString
from a str
.
Sourcepub fn from_static_str(string: &'static str) -> CFRetained<CFString> ⓘ
Available on crate feature CFString
only.
pub fn from_static_str(string: &'static str) -> CFRetained<CFString> ⓘ
CFString
only.Creates a new CFString
from a 'static
str
.
This may be slightly more efficient than CFString::from_str
, as it
may be able to re-use the existing buffer (since we know it won’t be
deallocated).
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.
Trait Implementations§
Source§impl AsRef<CFString> for CFMutableString
impl AsRef<CFString> for CFMutableString
Source§impl Borrow<CFString> for CFMutableString
impl Borrow<CFString> for CFMutableString
Source§impl ConcreteType for CFString
Available on crate feature CFString
only.
impl ConcreteType for CFString
Available on crate feature
CFString
only.Source§impl Ord for CFString
Available on crate feature CFString
only.
impl Ord for CFString
Available on crate feature
CFString
only.Source§impl PartialOrd for CFString
Available on crate feature CFString
only.
impl PartialOrd for CFString
Available on crate feature
CFString
only.Source§impl RefEncode for CFString
impl RefEncode for CFString
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for CFString
Auto Trait Implementations§
impl !Freeze for CFString
impl !RefUnwindSafe for CFString
impl !Send for CFString
impl !Sync for CFString
impl !Unpin for CFString
impl !UnwindSafe for CFString
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