feat: add all schema functions in cdylib project
This commit is contained in:
@@ -49,6 +49,10 @@ impl<T> ObjectPool<T> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn clear(&mut self) -> () {
|
||||
self.objs.clear();
|
||||
}
|
||||
|
||||
pub fn pop(&mut self, token: Token) -> Result<T, Error> {
|
||||
match self.objs.remove(Self::token_to_key(token)) {
|
||||
Some(obj) => Ok(obj),
|
||||
|
||||
Reference in New Issue
Block a user