Struct core_graphics::color_space::CGColorSpace
source · pub struct CGColorSpace(_);
Implementations
sourceimpl CGColorSpace
impl CGColorSpace
pub fn type_id() -> CFTypeID
pub fn create_with_name(name: CFStringRef) -> Option<CGColorSpace>
pub fn create_device_rgb() -> CGColorSpace
pub fn create_device_gray() -> CGColorSpace
Trait Implementations
sourceimpl AsRef<CGColorSpaceRef> for CGColorSpace
impl AsRef<CGColorSpaceRef> for CGColorSpace
sourcefn as_ref(&self) -> &CGColorSpaceRef
fn as_ref(&self) -> &CGColorSpaceRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<CGColorSpaceRef> for CGColorSpace
impl Borrow<CGColorSpaceRef> for CGColorSpace
sourcefn borrow(&self) -> &CGColorSpaceRef
fn borrow(&self) -> &CGColorSpaceRef
Immutably borrows from an owned value. Read more
sourceimpl Clone for CGColorSpace
impl Clone for CGColorSpace
sourcefn clone(&self) -> CGColorSpace
fn clone(&self) -> CGColorSpace
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Deref for CGColorSpace
impl Deref for CGColorSpace
type Target = CGColorSpaceRef
type Target = CGColorSpaceRef
The resulting type after dereferencing.
sourcefn deref(&self) -> &CGColorSpaceRef
fn deref(&self) -> &CGColorSpaceRef
Dereferences the value.
sourceimpl DerefMut for CGColorSpace
impl DerefMut for CGColorSpace
sourcefn deref_mut(&mut self) -> &mut CGColorSpaceRef
fn deref_mut(&mut self) -> &mut CGColorSpaceRef
Mutably dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for CGColorSpace
impl !Send for CGColorSpace
impl !Sync for CGColorSpace
impl Unpin for CGColorSpace
impl UnwindSafe for CGColorSpace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more