Skip to main content

with_dedup

Function with_dedup 

Source
pub fn with_dedup<T>(enabled: bool, f: impl FnOnce() -> T) -> T
Expand description

Encode f’s value with Rc-dedup ON: shared subtrees ship once + backrefs. Self-describing by tag, so the receiver rebuilds the sharing with no knob of its own. The default (OFF) is byte-unchanged.