Struct core_graphics::data_provider::CGDataProvider
[−]
pub struct CGDataProvider(_);
Methods
impl CGDataProvider
[src]
pub fn type_id() -> CFTypeID
[src]
pub fn from_buffer(buffer: Arc<Vec<u8>>) -> Self
[src]
Creates a data provider from the given reference-counted buffer.
The CGDataProvider
object takes ownership of the reference. Once the data provider
is destroyed, the reference count of the buffer is automatically decremented.
Methods from Deref<Target = CGDataProviderRef>
pub fn copy_data(&self) -> CFData
[src]
Creates a copy of the data from the underlying CFDataProviderRef
.
Trait Implementations
impl Drop for CGDataProvider
impl Clone for CGDataProvider
fn clone(&self) -> CGDataProvider
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Deref for CGDataProvider
type Target = CGDataProviderRef
The resulting type after dereferencing.
fn deref(&self) -> &CGDataProviderRef
Dereferences the value.
impl DerefMut for CGDataProvider
fn deref_mut(&mut self) -> &mut CGDataProviderRef
Mutably dereferences the value.
impl Borrow<CGDataProviderRef> for CGDataProvider
fn borrow(&self) -> &CGDataProviderRef
Immutably borrows from an owned value. Read more
impl AsRef<CGDataProviderRef> for CGDataProvider
fn as_ref(&self) -> &CGDataProviderRef
Performs the conversion.