Enum skia_safe::image::CachingHint
source · #[repr(u32)]pub enum CachingHint {
Allow,
Disallow,
}
Expand description
CachingHint selects whether Skia may internally cache Bitmap
generated by
decoding Image
, or by copying Image
from GPU to CPU. The default behavior
allows caching Bitmap
.
Choose CachingHint::Disallow
if Image
pixels are to be used only once, or
if Image
pixels reside in a cache outside of Skia, or to reduce memory pressure.
Choosing CachingHint::Allow
does not ensure that pixels will be cached.
Image
pixels may not be cached if memory requirements are too large or
pixels are not accessible.
Variants§
Trait Implementations§
source§impl Clone for SkImage_CachingHint
impl Clone for SkImage_CachingHint
source§fn clone(&self) -> SkImage_CachingHint
fn clone(&self) -> SkImage_CachingHint
Returns a copy 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 moresource§impl Debug for SkImage_CachingHint
impl Debug for SkImage_CachingHint
source§impl Hash for SkImage_CachingHint
impl Hash for SkImage_CachingHint
source§impl PartialEq<SkImage_CachingHint> for SkImage_CachingHint
impl PartialEq<SkImage_CachingHint> for SkImage_CachingHint
source§fn eq(&self, other: &SkImage_CachingHint) -> bool
fn eq(&self, other: &SkImage_CachingHint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SkImage_CachingHint
impl Eq for SkImage_CachingHint
impl StructuralEq for SkImage_CachingHint
impl StructuralPartialEq for SkImage_CachingHint
Auto Trait Implementations§
impl RefUnwindSafe for SkImage_CachingHint
impl Send for SkImage_CachingHint
impl Sync for SkImage_CachingHint
impl Unpin for SkImage_CachingHint
impl UnwindSafe for SkImage_CachingHint
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