#[derive(Default)] struct Config { pub debug_mode: bool, } thread_local! { static CURRENT_CONFIG: Config = Default::default(); } fn main() ...
確定! 回上一頁