Skip to main content

COOLPROP

Static COOLPROP 

Source
pub static COOLPROP: LazyLock<CoolPropLib>
Expand description

Global instance of the CoolProp dynamic library.

The library is loaded lazily. Before the handle is published, an internal probe initializes native process-global configuration. This is automatic; callers do not need to perform a special first native call.

§Panics

Panics on initialization if the CoolProp dynamic library cannot be loaded or its initialization probe does not produce a finite value.

§Safety

Methods exposed by bindings::CoolProp remain unsafe. Callers must uphold each function’s pointer and lifetime requirements and select the access mode required by the native operation. Loading and the initialization probe occur once, but synchronization is effective only for calls made through this handle.

§See Also