

2·
4 months agoI’m trying to come up with a good pun how ownership and safety could have prevented this but…
use std::sync::OnceLock;
#[derive(Debug)] struct BrainCell { in_use: bool, }
static BRAIN_CELL: OnceLock<BrainCell> = OnceLock::new();
fn get_brain_cell() -> &'static BrainCell BRAIN_CELL.get_or_init( }) }
https://nwn2.fandom.com/wiki/One_of_Many or you got all of that in one beautiful creature