#[repr(C)]pub struct _lv_cache_t {
pub clz: *const lv_cache_class_t,
pub node_size: u32,
pub max_size: u32,
pub size: u32,
pub ops: lv_cache_ops_t,
pub lock: lv_mutex_t,
pub name: *const c_char,
}Expand description
The cache entry struct
Fields§
§clz: *const lv_cache_class_t< Cache class. There are two built-in classes:
- lv_cache_class_lru_rb_count for LRU-based cache with count-based eviction policy.
- lv_cache_class_lru_rb_size for LRU-based cache with size-based eviction policy.
node_size: u32< Size of a node
max_size: u32< Maximum size of the cache
size: u32< Current size of the cache
ops: lv_cache_ops_t< Cache operations struct _lv_cache_ops_t
lock: lv_mutex_t< Cache lock used to protect the cache in multithreading environments
name: *const c_char< Name of the cache
Trait Implementations§
Source§impl Clone for _lv_cache_t
impl Clone for _lv_cache_t
Source§fn clone(&self) -> _lv_cache_t
fn clone(&self) -> _lv_cache_t
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 moreSource§impl Debug for _lv_cache_t
impl Debug for _lv_cache_t
impl Copy for _lv_cache_t
Auto Trait Implementations§
impl Freeze for _lv_cache_t
impl RefUnwindSafe for _lv_cache_t
impl !Send for _lv_cache_t
impl !Sync for _lv_cache_t
impl Unpin for _lv_cache_t
impl UnsafeUnpin for _lv_cache_t
impl UnwindSafe for _lv_cache_t
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