pub type RefFn<S, T> = fn(state: &S, index: Index) -> &T;
Expand description
Function signature for a variable’s immutable getter.
In Texcraft all Variables are built from an immutable getter and a mutable getter. This type alias just defines the signature of immutable getters. The first argument is the state, and the second argument is the index of the variable.