pub struct AstCacheConfig {
pub max_nodes: usize,
pub max_bytes: usize,
}Expand description
AST node cache configuration.
Optimized for AST node caching with higher memory limits.
Fields§
§max_nodes: usizeMaximum number of AST nodes to cache
max_bytes: usizeMaximum memory for AST cache in bytes
Trait Implementations§
Source§impl Clone for AstCacheConfig
impl Clone for AstCacheConfig
Source§fn clone(&self) -> AstCacheConfig
fn clone(&self) -> AstCacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AstCacheConfig
impl Debug for AstCacheConfig
Source§impl Default for AstCacheConfig
impl Default for AstCacheConfig
Source§fn default() -> AstCacheConfig
fn default() -> AstCacheConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AstCacheConfig
impl RefUnwindSafe for AstCacheConfig
impl Send for AstCacheConfig
impl Sync for AstCacheConfig
impl Unpin for AstCacheConfig
impl UnsafeUnpin for AstCacheConfig
impl UnwindSafe for AstCacheConfig
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