Skip to main content

set_elementwise_write_once

Function set_elementwise_write_once 

Source
pub fn set_elementwise_write_once(enabled: bool)
Expand description

Install a write-once override for THIS THREAD.

Same OnceLock defect, and the same fix, as set_elementwise_witness_policy: the env form is read once per process, so the first elementwise map froze it and the A/B this toggle exists for could never be run in ONE process. Thread-local so it cannot leak between the crate’s concurrently-running tests.