Skip to main content

AsCFType

Trait AsCFType 

Source
pub trait AsCFType {
    // Required method
    fn as_ptr(&self) -> *mut c_void;

    // Provided method
    fn to_cf_type(&self) -> CFType { ... }
}
Expand description

Trait for Core Foundation values that can be inserted into CF collections.

Required Methods§

Source

fn as_ptr(&self) -> *mut c_void

Borrow the underlying Core Foundation object pointer.

Provided Methods§

Source

fn to_cf_type(&self) -> CFType

Clone this value as an erased CFType.

Implementors§