Oh sorry, the solution is similar to a previous question I posted and it was already solved by @alice. Here is one possible solution:
use std::collections::HashMap;
use nalgebra::Point3;
pub struct Shell {
pub points: Option<HashMap<Point3<u16>, bool>>,
}
static mut STATIC_SHELL:Shell = Shell {
points: None,
};
fn main() {
unsafe {
STATIC_SHELL.points = Some(HashMap::new());
if let Some(points) = &mut STATIC_SHELL.points {
points.insert(Point3::new(1,2,3), true);
println!("{:?}", points);
}
}
}