Skip to main content

Crate rhwp_codec_resource

Crate rhwp_codec_resource 

Source
Expand description

Fallible codec storage and work checks. No process-global allocator changes.

Structs§

ResourceError

Traits§

IteratorResource
ResourceBudget
The requesting importer owns counters, limits, cancellation, and sticky errors.
SliceResource
VecResource
Fallible methods preserve normal Vec reborrowing at decoder call sites.

Functions§

append
capacity
collect
copy
extend
filled
iterations
Reserve a finite iterator’s work once; unknown-length iterators check each step.
product
push
reject
reserve
resize
sort
Stable ordering with explicitly fallible index storage instead of hidden allocator-owned sort scratch. Ties preserve the original input order.
try_collect
Collect fallible elements without an unaccounted intermediate allocation.
work
Charge before the corresponding repeated work. Zero checks cancellation too.