pub enum CoreGraphicsImage {
Empty,
YUp(CGImage),
YDown(CGImage),
}
Expand description
A core-graphics image
Variants§
Empty
Empty images are not supported for core-graphics, so we need a variant here to handle that case.
YUp(CGImage)
YDown(CGImage)
Implementations§
Source§impl CoreGraphicsImage
impl CoreGraphicsImage
pub fn as_cgimage(&self) -> Option<&CGImage>
Trait Implementations§
Source§impl Clone for CoreGraphicsImage
impl Clone for CoreGraphicsImage
Source§fn clone(&self) -> CoreGraphicsImage
fn clone(&self) -> CoreGraphicsImage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for CoreGraphicsImage
impl RefUnwindSafe for CoreGraphicsImage
impl !Send for CoreGraphicsImage
impl !Sync for CoreGraphicsImage
impl Unpin for CoreGraphicsImage
impl UnwindSafe for CoreGraphicsImage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.