fix: 修复全局边界安全与内存稳定性问题
This commit is contained in:
@@ -43,6 +43,18 @@ impl PropForge {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub fn clear(&self) {
|
||||
self.templates.clear();
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.templates.len()
|
||||
}
|
||||
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.templates.is_empty()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for PropForge {
|
||||
|
||||
Reference in New Issue
Block a user