Skip to main content

get_default_parameters

Function get_default_parameters 

Source
pub fn get_default_parameters() -> &'static Parameters
Expand description

Provides a thread-safe, cached reference to the default atomic parameters.

These parameters are statically compiled into the library from the resources/qeq.data.toml file and include data for a wide range of elements, following the conventions derived from the Rappé & Goddard QEq formalism.

This function ensures that the parameters are loaded only once, improving performance for repeated calls.

§Returns

A static reference (&'static Parameters) to the default parameter set.

§Panics

Panics only if the embedded default TOML file cannot be parsed, which indicates a bug in the library distribution.