pub struct MemoryLimits {
pub max_ast_size: u64,
pub max_temp_memory: u64,
pub max_stack_depth: u32,
pub max_cache_entries: u32,
}Expand description
Memory limit settings
Fields§
§max_ast_size: u64Maximum memory usage for AST construction (bytes)
max_temp_memory: u64Maximum memory usage for temporary parsing data (bytes)
max_stack_depth: u32Maximum call stack depth
max_cache_entries: u32Maximum number of cached parse results
Trait Implementations§
Source§impl Clone for MemoryLimits
impl Clone for MemoryLimits
Source§fn clone(&self) -> MemoryLimits
fn clone(&self) -> MemoryLimits
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MemoryLimits
impl Debug for MemoryLimits
Source§impl Default for MemoryLimits
impl Default for MemoryLimits
Source§impl<'de> Deserialize<'de> for MemoryLimits
impl<'de> Deserialize<'de> for MemoryLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryLimits
impl PartialEq for MemoryLimits
Source§fn eq(&self, other: &MemoryLimits) -> bool
fn eq(&self, other: &MemoryLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemoryLimits
impl Serialize for MemoryLimits
impl StructuralPartialEq for MemoryLimits
Auto Trait Implementations§
impl Freeze for MemoryLimits
impl RefUnwindSafe for MemoryLimits
impl Send for MemoryLimits
impl Sync for MemoryLimits
impl Unpin for MemoryLimits
impl UnsafeUnpin for MemoryLimits
impl UnwindSafe for MemoryLimits
Blanket Implementations§
impl<T> Allocation for T
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