pub trait MemoryFootprint {
// Required method
fn resident_bytes(&self) -> usize;
}Expand description
Conservative logical payload bytes retained by one prefetched value.
The estimate describes the final post-transform payload held by loader
result queues. It is not a process-RSS measurement: allocator metadata and
tensor backing-storage aliasing are intentionally outside this contract.
All built-in arithmetic saturates at usize::MAX.
Required Methods§
Sourcefn resident_bytes(&self) -> usize
fn resident_bytes(&self) -> usize
Returns the conservative logical payload size in bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".