#[non_exhaustive]pub struct AnalyzeOptions { /* private fields */ }Expand description
Limits controlling the memory retained by structural analysis.
Defaults accept 100,000 streams, 100,000 blocks, and 1 MiB of optional gzip metadata across the complete input. Individual back-reference records are omitted by default; exact counts, length histograms, reach, and window coverage are always collected regardless of that retention budget.
Implementations§
Source§impl AnalyzeOptions
impl AnalyzeOptions
Sourcepub const fn maximum_streams(self, maximum: usize) -> Self
pub const fn maximum_streams(self, maximum: usize) -> Self
Sets the maximum number of gzip members or other framed streams.
Sourcepub const fn maximum_blocks(self, maximum: usize) -> Self
pub const fn maximum_blocks(self, maximum: usize) -> Self
Sets the maximum number of DEFLATE blocks across the input.
Sourcepub const fn maximum_header_bytes(self, maximum: usize) -> Self
pub const fn maximum_header_bytes(self, maximum: usize) -> Self
Sets the input-wide maximum for retained optional gzip metadata.
The budget covers the extra field, original name, and comment. Fixed header fields do not consume it. Extra fields, names, and comments from all members share this budget.
Sourcepub const fn maximum_retained_backreferences(self, maximum: usize) -> Self
pub const fn maximum_retained_backreferences(self, maximum: usize) -> Self
Sets the input-wide budget for detailed predecessor-window references.
Summaries remain exact after this many records have been retained. Each affected block reports how many of its records were omitted.
Sourcepub const fn stream_limit(self) -> usize
pub const fn stream_limit(self) -> usize
Returns the configured stream limit.
Sourcepub const fn block_limit(self) -> usize
pub const fn block_limit(self) -> usize
Returns the configured block limit.
Sourcepub const fn header_byte_limit(self) -> usize
pub const fn header_byte_limit(self) -> usize
Returns the input-wide optional gzip-metadata limit.
Sourcepub const fn retained_backreference_limit(self) -> usize
pub const fn retained_backreference_limit(self) -> usize
Returns the input-wide detailed-reference retention budget.
Trait Implementations§
Source§impl Clone for AnalyzeOptions
impl Clone for AnalyzeOptions
Source§fn clone(&self) -> AnalyzeOptions
fn clone(&self) -> AnalyzeOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more