小弧光的博客

公众号:小弧光黑板报

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

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 小弧光 阅读(13) 评论(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 小弧光 阅读(22) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示