pub trait MemoryReservation:
Debug
+ Send
+ Sync {
// Required methods
fn size(&self) -> usize;
fn resize(&mut self, new_size: usize);
}Expand description
A memory reservation within a MemoryPool that is freed on drop
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".