Thread -local variables can be created in Rust using the thread_local! ... (static FOO: RefCell<u32> = RefCell::new(1)); FOO.with(|f| { assert_eq!
確定! 回上一頁