Otherwise, Rust won't see it. So, in your case, thread_rng() returns a rand::prelude::ThreadRng . The method gen is not defined on ...
確定! 回上一頁