pub trait IPool<T> {
// Required methods
fn clear(&mut self) -> bool;
fn empty(&mut self) -> bool;
fn size(&mut self) -> u64;
fn put(&mut self, item: T) -> bool;
fn get(&mut self) -> Option<T>;
}Required Methods§
fn clear(&mut self) -> bool
fn empty(&mut self) -> bool
fn size(&mut self) -> u64
fn put(&mut self, item: T) -> bool
fn get(&mut self) -> Option<T>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".