[记]Rust闭包加动态分发
摘要:
~~~rust pub trait App { fn run(&mut self); } #[derive(Clone, Copy)] pub struct Cda{ d:i32, } impl Cda { fn new(num:i32)->Self{ Self { d: num } } fn in 阅读全文
posted @ 2023-07-04 13:32 戳人痛处 阅读(31) 评论(0) 推荐(0) 编辑