1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
//! Computational functions.
pub mod calc;
mod construct;
mod data;
mod foundations;
pub use self::construct::*;
pub use self::data::*;
pub use self::foundations::*;
use crate::prelude::*;
/// Hook up all compute definitions.
pub(super) fn define(global: &mut Scope) {
global.define("type", type_);
global.define("repr", repr);
global.define("panic", panic);
global.define("assert", assert);
global.define("eval", eval);
global.define("int", int);
global.define("float", float);
global.define("luma", luma);
global.define("rgb", rgb);
global.define("cmyk", cmyk);
global.define("symbol", symbol);
global.define("str", str);
global.define("label", label);
global.define("regex", regex);
global.define("range", range);
global.define("read", read);
global.define("csv", csv);
global.define("json", json);
global.define("toml", toml);
global.define("yaml", yaml);
global.define("xml", xml);
global.define("calc", calc::module());
}
|