Skip to main content

value_semantics_enabled

Function value_semantics_enabled 

Source
pub fn value_semantics_enabled() -> bool
Expand description

Whether Mutable Value Semantics is enabled for compiled (AOT) programs. The AOT binary is a separate process from the interpreter, so it reads the LOGOS_VALUE_SEMANTICS env var itself (inherited from the parent process), cached once. When on, collection Clone deep-copies (value semantics); when off it shares the Rc (the historical reference semantics — unchanged).