Skip to main content

set_memory_cap

Function set_memory_cap 

Source
pub fn set_memory_cap(bytes: Option<u64>)
Expand description

Override the cooperative soft-RSS memory budget, in bytes. Some(0) disables the budget; Some(n) caps at n bytes; None restores the LATEXML_RSS_CAP_BYTES env / built-in default. Mirrors the --max-memory CLI convention where 0 means “no limit”. See resolve_rss_cap (private) for the precedence order.