Struct core_graphics::context::CGContext[][src]

pub struct CGContext(_);

Implementations

Creates a CGContext instance from an existing CGContextRef pointer.

This funtion will internally call CGRetain and hence there is no need to call it explicitly.

This function is particularly useful for cases when the context is not instantiated/managed by the caller, but it’s retrieve via other means (e.g., by calling the method NSGraphicsContext::CGContext in a cocoa application).

Methods from Deref<Target = CGContextRef>

Trait Implementations

Performs the conversion.

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.