pattern-match/match-iflet #177
Replies: 49 comments 9 replies
-
“你可以在这里找到答案(在 solutions 路径下)”,这句话的超链接指向有问题 |
Beta Was this translation helpful? Give feedback.
-
练习6中为啥我这样写 会报错 error[E0425]: cannot find value
|
Beta Was this translation helpful? Give feedback.
-
小白求教,课后题第三题中Message枚举中的Move后面为啥跟的是花括号 |
Beta Was this translation helpful? Give feedback.
-
在第四题中,我遇到一个想不明白的问题。 fn main() {
let alphabets = ['a', 'E', 'Z', '0', 'x', '9' , 'Y'];
// 使用 `matches` 填空
for ab in alphabets {
// 这里为什么会断言通过呢
assert!(matches!(ab , i32 ));
}
}
|
Beta Was this translation helpful? Give feedback.
-
感觉rust中的 |
Beta Was this translation helpful? Give feedback.
-
第四题也可以这样吧: fn main() {
} |
Beta Was this translation helpful? Give feedback.
-
match 里面的 target = xxx , 这个逗号咋有时候有有时候没有,都可以。。这么随意 |
Beta Was this translation helpful? Give feedback.
-
mark finished |
Beta Was this translation helpful? Give feedback.
-
终于在这章领悟到变量解构了 |
Beta Was this translation helpful? Give feedback.
-
感觉这节相对简单点 |
Beta Was this translation helpful? Give feedback.
-
Done ✅ |
Beta Was this translation helpful? Give feedback.
-
pattern-match/match-iflet
Learning Rust By Practice, narrowing the gap between beginner and skilled-dev with challenging examples, exercises and projects.
https://zh.practice.rs/pattern-match/match-iflet.html
Beta Was this translation helpful? Give feedback.
All reactions