小弧光的博客

公众号:小弧光黑板报

导航

06 2023 档案

atomic_enum rust 原子枚举类型
摘要:https://docs.rs/atomic_enum/latest/atomic_enum/ #[atomic_enum] #[derive(PartialEq)] enum CatState { Dead = 0, BothDeadAndAlive, Alive, } let state = A 阅读全文

posted @ 2023-06-09 09:30 小弧光 阅读(25) 评论(0) 推荐(0)

Arc get_mut
摘要:/// Returns a mutable reference into the given `Arc`, if there are /// no other `Arc` or [`Weak`] pointers to the same allocation. /// /// Returns [`N 阅读全文

posted @ 2023-06-01 10:36 小弧光 阅读(47) 评论(0) 推荐(0)