Struct core_graphics::data_provider::CGDataProvider [−][src]
pub struct CGDataProvider(_);
Implementations
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.
Creates a data prvider from a given slice. The data provider does not own the slice in this case, so it’s up to the user to ensure the memory safety here.
Creates a data provider from the given raw pointer, length, and destructor function.
This is double-boxed because the Core Text API requires that the userdata be a single pointer.
Methods from Deref<Target = CGDataProviderRef>
Trait Implementations
Performs the conversion.
Immutably borrows from an owned value. Read more
type Target = CGDataProviderRef
type Target = CGDataProviderRef
The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for CGDataProvider
impl !Send for CGDataProvider
impl !Sync for CGDataProvider
impl Unpin for CGDataProvider
impl UnwindSafe for CGDataProvider
Blanket Implementations
Mutably borrows from an owned value. Read more