pub trait DataBytes {
// Required method
fn data_bytes(&self) -> usize;
}Expand description
The bytes a datum occupies, so the staging area can be sized in bytes.
Counts size_of::<Self>() plus what the datum owns on the heap. An estimate suffices: the
figure paces when staged updates ship and feeds the buffer’s size metrics, nothing else.
Required Methods§
Sourcefn data_bytes(&self) -> usize
fn data_bytes(&self) -> usize
The bytes this datum occupies, heap included.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".