Skip to main content

CacheSize

Trait CacheSize 

Source
pub trait CacheSize {
    // Required method
    fn cache_size(&self) -> usize;
}
Expand description

Trait for getting size of cached values

Required Methods§

Source

fn cache_size(&self) -> usize

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CacheSize for ()

Source§

impl CacheSize for String

Source§

impl CacheSize for f32

Source§

impl CacheSize for f64

Source§

impl CacheSize for i32

Source§

impl CacheSize for i64

Source§

impl<T> CacheSize for Box<T>

Source§

impl<T> CacheSize for Vec<T>

Implementors§