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