use std::cell::LazyCell;
#[derive(Debug)]
struct WeatherMap {}
fn get_weather_map() -> LazyCell<WeatherMap> {
println!("Getting weather maps..");
LazyCell::new(|| WeatherMap{})
}
let map: LazyCell<WeatherMap> = get_weather_map();
println!("Before accessing the map");
println!("Got weather maps: {:?}", map);