pub trait Poolable {
// Required methods
fn empty() -> Self;
fn reset(&mut self);
fn capacity(&self) -> usize;
// Provided method
fn really_dropped(&self) -> bool { ... }
}Required Methods§
Provided Methods§
Sourcefn really_dropped(&self) -> bool
fn really_dropped(&self) -> bool
in case you are pooling something ref counted e.g. arc
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".