sandbox-core · Rust¶
The shared Rust kernel behind every binding — pure functions over data: geometry
(BBox, TileId), summary Stats, and small buffer/packing helpers. The API
reference is generated from rustdoc's JSON (produced on stable via
RUSTC_BOOTSTRAP=1) and rendered here in Material, so it always matches the crate.
Add the dependency¶
[dependencies]
sandbox-core = "0.1"
Quick start¶
use sandbox_core::{greet, stats, TileId};
fn main() {
println!("{}", greet("world"));
let t = TileId::from_quadkey("213").unwrap();
println!("{} {}", t.quadkey(), t.bbox().area());
let s = stats(&[1.0, 2.0, 3.0]).unwrap();
println!("{} {}", s.count, s.mean);
}
Browse the API by type in the sidebar.