Skip to main content

ResidentBytes

Trait ResidentBytes 

Source
pub trait ResidentBytes {
    // Required method
    fn resident_bytes(&self) -> usize;
}

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ResidentBytes for Arc<Array2<f64>>

Byte-accounting for Arc<Array2<f64>>.

Reports the full dense footprint of the owned array. Multiple Arcs pointing to the same allocation will each report the full size; this is the conservative accounting the caches want because a single residency in the cache is what we are budgeting for.

Implementors§