Struct components::painting::ImageCache
source · [−]pub struct ImageCache {
pub current_size: i32,
pub current_size_bytes: i32,
pub live_image_count: i32,
pub maximum_size: i32,
pub maximum_size_bytes: i32,
pub pending_image_count: i32,
}
Fields
current_size: i32
current_size_bytes: i32
live_image_count: i32
maximum_size: i32
maximum_size_bytes: i32
pending_image_count: i32
Implementations
sourceimpl ImageCache
impl ImageCache
pub fn clear()
pub fn clear_live_images()
pub fn contains_key(key: Key) -> bool
pub fn evict(key: Key, include_live: bool) -> bool
pub fn put_if_absent(
key: Key,
loader: ImageStreamCompleter,
on_error: Option<Box<ImageErrorListener>>
) -> Option<ImageStreamCompleter>
pub fn status_for_key(key: Key) -> ImageCacheStatus
Auto Trait Implementations
impl RefUnwindSafe for ImageCache
impl Send for ImageCache
impl Sync for ImageCache
impl Unpin for ImageCache
impl UnwindSafe for ImageCache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.