grass/src/builtin/mod.rs

16 lines
354 B
Rust
Raw Normal View History

2020-01-25 20:58:30 -05:00
use lazy_static::lazy_static;
use std::collections::BTreeMap;
use crate::common::Scope;
use crate::function::Function;
use crate::value::Value;
pub(crate) type Builtin = dyn Fn(&Scope) -> Value + Send + Sync;
lazy_static! {
pub(crate) static ref GLOBAL_FUNCTIONS: BTreeMap<String, Function> = {
let m = BTreeMap::new();
m
};
}