是否有一种方法可以引用Rust中的比较运算符或函数来比较某些值?所以我心里想的是. A,}
let a = 1;let op = match some_enum { ge_operator // return greater_equal operator - how could this work? SomeEnum::
为什么编译器会说我不能用u32为Vec建立索引,我该如何修复它? let a: Vec<u32> = vec![1, 2, 3, 4]; let mut count = 0; for i in 0..number {}error[E0277]: the type `[u32]` cannot be indexed by `<