Skip to main content

MATHFUNCS

Static MATHFUNCS 

Source
pub static MATHFUNCS: Lazy<Mutex<Vec<mathfunc>>>
Expand description

Port of MathFunc mathfuncs; from Src/module.c:1258 — the global head of the linked list of math functions. Both autoloadable math ported (added by modules) and user math ported (added by functions -M) live here.

C is a singly linked list with mathfunc.next chaining. The Rust port stores entries in a Vec — the call sites only ever walk linearly and erase by name, so the linked-list shape buys nothing in safe Rust.