Skip to content

Instantly share code, notes, and snippets.

import mod from file

// main.ts
mod grid;
use grid::Grid;
...
let mut grid: Grid = Grid::new();

// grid.rs
pub struct Grid{}