You can derive FromPrimitive . Using Rust 2018 simplified imports syntax: use num_derive::FromPrimitive; use num_traits::FromPrimitive; ...
確定! 回上一頁