Enum CachingHint
#[repr(u32)]pub enum CachingHint {
Allow = 0,
Disallow = 1,
}
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§
§impl Clone for SkImage_CachingHint
impl Clone for SkImage_CachingHint
§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 more§impl Debug for SkImage_CachingHint
impl Debug for SkImage_CachingHint
§impl Hash for SkImage_CachingHint
impl Hash for SkImage_CachingHint
§impl PartialEq for SkImage_CachingHint
impl PartialEq for SkImage_CachingHint
impl Copy for SkImage_CachingHint
impl Eq for SkImage_CachingHint
impl StructuralPartialEq for SkImage_CachingHint
Auto Trait Implementations§
impl Freeze for SkImage_CachingHint
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