Struct core_graphics::image::CGImageRef
source · pub struct CGImageRef(_);
Implementations
sourceimpl CGImageRef
impl CGImageRef
pub fn width(&self) -> size_t
pub fn height(&self) -> size_t
pub fn bits_per_component(&self) -> size_t
pub fn bits_per_pixel(&self) -> size_t
pub fn bytes_per_row(&self) -> size_t
pub fn color_space(&self) -> CGColorSpace
Trait Implementations
sourceimpl AsRef<CGImageRef> for CGImage
impl AsRef<CGImageRef> for CGImage
sourcefn as_ref(&self) -> &CGImageRef
fn as_ref(&self) -> &CGImageRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<CGImageRef> for CGImage
impl Borrow<CGImageRef> for CGImage
sourcefn borrow(&self) -> &CGImageRef
fn borrow(&self) -> &CGImageRef
Immutably borrows from an owned value. Read more
Auto Trait Implementations
impl !RefUnwindSafe for CGImageRef
impl Send for CGImageRef
impl !Sync for CGImageRef
impl Unpin for CGImageRef
impl UnwindSafe for CGImageRef
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