Skip to main content

with_receipt_compressor

Function with_receipt_compressor 

Source
pub fn with_receipt_compressor<R>(f: impl FnOnce(&mut Compressor<'_>) -> R) -> R
Expand description

Executes f with the thread-local receipt compressor on std, otherwise creates a new one.