有没有办法在Rust中保存通用随机数生成器? 我想要一种编写通用代码段的方法 ... let mut rng: Box<dyn rand::Rng> = Box::new(rand::thread_rng());
確定! 回上一頁