Type Definition jsonnet::NativeCallback [] [src]

type NativeCallback<'a> = fn(vm: &'a JsonnetVm, argv: &[JsonVal<'a>]) -> Result<JsonValue<'a>, String>;

Callback to provide native extensions to Jsonnet.

This callback should not have side-effects! Jsonnet is a lazy functional language and will call your function when you least expect it, more times than you expect, or not at all.