pub enum RasterCachePolicy {
Disabled,
Memory {
retention: RetentionClass,
priority: CachePriority,
},
}Variants§
Implementations§
Source§impl RasterCachePolicy
impl RasterCachePolicy
pub const fn memory(retention: RetentionClass, priority: CachePriority) -> Self
pub const fn is_enabled(self) -> bool
pub const fn retention(self) -> Option<RetentionClass>
pub const fn priority(self) -> Option<CachePriority>
Trait Implementations§
Source§impl Clone for RasterCachePolicy
impl Clone for RasterCachePolicy
Source§fn clone(&self) -> RasterCachePolicy
fn clone(&self) -> RasterCachePolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RasterCachePolicy
Source§impl Debug for RasterCachePolicy
impl Debug for RasterCachePolicy
impl Eq for RasterCachePolicy
Source§impl Hash for RasterCachePolicy
impl Hash for RasterCachePolicy
Source§impl PartialEq for RasterCachePolicy
impl PartialEq for RasterCachePolicy
impl StructuralPartialEq for RasterCachePolicy
Auto Trait Implementations§
impl Freeze for RasterCachePolicy
impl RefUnwindSafe for RasterCachePolicy
impl Send for RasterCachePolicy
impl Sync for RasterCachePolicy
impl Unpin for RasterCachePolicy
impl UnsafeUnpin for RasterCachePolicy
impl UnwindSafe for RasterCachePolicy
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