Type Alias texlang::variable::MutRefFn

source ·
pub type MutRefFn<S, T> = fn(state: &mut S, index: Index) -> &mut T;
Expand description

Function signature for a variable’s mutable getters.

In Texcraft all Variables are built from an immutable getter and a mutable getter. This type alias just defines the signature of mutable getters. The first argument is the state, and the second argument is the index of the variable.