pub struct MemorySettings {
pub max_parser_memory: u64,
pub allocation_strategy: MemoryAllocationStrategy,
pub enable_memory_pooling: bool,
pub memory_pool_size: usize,
}Expand description
Memory-specific settings for parser
Fields§
§max_parser_memory: u64Maximum memory usage for parser operations (bytes)
allocation_strategy: MemoryAllocationStrategyMemory allocation strategy
enable_memory_pooling: boolWhether to enable memory pooling
memory_pool_size: usizePool size for memory allocations
Trait Implementations§
Source§impl Clone for MemorySettings
impl Clone for MemorySettings
Source§fn clone(&self) -> MemorySettings
fn clone(&self) -> MemorySettings
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 MemorySettings
impl Debug for MemorySettings
Source§impl Default for MemorySettings
impl Default for MemorySettings
Source§impl<'de> Deserialize<'de> for MemorySettings
impl<'de> Deserialize<'de> for MemorySettings
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 MemorySettings
impl PartialEq for MemorySettings
Source§fn eq(&self, other: &MemorySettings) -> bool
fn eq(&self, other: &MemorySettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MemorySettings
impl Serialize for MemorySettings
impl StructuralPartialEq for MemorySettings
Auto Trait Implementations§
impl Freeze for MemorySettings
impl RefUnwindSafe for MemorySettings
impl Send for MemorySettings
impl Sync for MemorySettings
impl Unpin for MemorySettings
impl UnsafeUnpin for MemorySettings
impl UnwindSafe for MemorySettings
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