1 2 3 4 5 6 7
pub trait IPool< T > { 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 >; }
1 2 3 4 5 6 7
pub trait IPool< T > { 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 >; }