Function fend_core::evaluate_preview_with_interrupt
source · [−]pub fn evaluate_preview_with_interrupt(
input: &str,
context: &mut Context,
int: &impl Interrupt
) -> FendResultExpand description
Evaluate the given string to use as a live preview.
Unlike the normal evaluation functions, evaluate_preview_with_interrupt
does not mutate the passed-in context, and only returns results suitable
for displaying as a live preview: overly long output, multi-line output,
unit types etc. are all filtered out. RNG functions (e.g. roll d6) are
also disabled. Currency conversions (exchange rates) are disabled.