pub struct PooledEngine { /* private fields */ }Expand description
自动归还的引擎(RAII模式)
当此对象离开作用域时,引擎会自动归还到池中。
Implementations§
Source§impl PooledEngine
impl PooledEngine
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
获取AST缓存统计信息
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
清空AST缓存
Sourcepub fn set_optimization(
&mut self,
constant_folding: bool,
dead_code: bool,
tail_recursion: bool,
)
pub fn set_optimization( &mut self, constant_folding: bool, dead_code: bool, tail_recursion: bool, )
配置优化选项
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PooledEngine
impl !RefUnwindSafe for PooledEngine
impl !Send for PooledEngine
impl !Sync for PooledEngine
impl Unpin for PooledEngine
impl !UnwindSafe for PooledEngine
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