You can use num or num-traits crates and bound your generic function type with num::Float , num::Integer or whatever relevant trait:
確定! 回上一頁