1
0

feat: add all schema functions in cdylib project

This commit is contained in:
2026-05-11 14:24:28 +08:00
parent 9e9aa282b1
commit 5c182bb4d3
2 changed files with 199 additions and 12 deletions

View File

@@ -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),