use num_traits::Float; #[derive(num_derive::Float)] struct Foo<T: Float>(T);. (I would post a playground link, but num-traits is not ...
確定! 回上一頁