e2rcore/interface/
i_pool.rs

1pub trait IPool< T > {
2    fn clear( & mut self ) -> bool;
3    fn empty( & mut self ) -> bool;
4    fn size( & mut self ) -> u64;
5    fn put( & mut self, item: T ) -> bool;
6    fn get( & mut self ) -> Option< T >;
7}