Module polyfill

Source
Expand description

This is a polyfill for a small subset of std’s strict provenance APIs.

The strict provenance APIs in core were stabilized in Rust 1.84, but it will likely be a while before Jiff can use them. (At time of writing, 2025-02-24, Jiff’s MSRV is Rust 1.70.)

The const requirement is also why these are non-generic free functions and not defined via an extension trait. It’s also why we don’t have the useful map_addr routine (which is directly relevant to our pointer tagging use case).

Traits§

StrictProvenancePolyfill 🔒

Functions§

without_provenance 🔒