pub struct ASTCache { /* private fields */ }Expand description
AST缓存,用于存储已解析的程序
Implementations§
Source§impl ASTCache
impl ASTCache
Sourcepub fn with_capacity(max_size: usize) -> Self
pub fn with_capacity(max_size: usize) -> Self
创建指定容量的AST缓存
Sourcepub fn stats(&self) -> CacheStats
pub fn stats(&self) -> CacheStats
获取缓存统计信息
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ASTCache
impl RefUnwindSafe for ASTCache
impl Send for ASTCache
impl Sync for ASTCache
impl Unpin for ASTCache
impl UnwindSafe for ASTCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more