pub trait Poolable {
// Required methods
fn empty() -> Self;
fn reset(&mut self);
fn capacity(&self) -> usize;
// Provided method
fn really_dropped(&mut self) -> bool { ... }
}Expand description
Trait for poolable objects
Required Methods§
Provided Methods§
Sourcefn really_dropped(&mut self) -> bool
fn really_dropped(&mut self) -> bool
return true if the object has really been dropped, e.g. if you’re pooling an Arc then Arc::get_mut().is_some() == true.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.