摘要:
Ref to : https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing fn main() { let number = "T-H-R-E-E"; // don't change this lin 阅读全文
posted @ 2024-02-23 14:59
Zhentiw
阅读(29)
评论(0)
推荐(0)
摘要:
This lesson shows how to use a Rust loop to run a program infinitely. use std::io; use std::process; fn main() { loop { println!("Please enter a first 阅读全文
posted @ 2024-02-23 14:39
Zhentiw
阅读(25)
评论(0)
推荐(0)
摘要:
In this lesson we'll learn how to exit a program using the std::process module in Rust and it's exit() method. use std::io; use std::process; fn main( 阅读全文
posted @ 2024-02-23 14:38
Zhentiw
阅读(38)
评论(0)
推荐(0)
摘要:
In this lesson we'll explore how to unwrap a Result type using a language feature called Pattern Matching. use std::io; fn main() { let mut first = St 阅读全文
posted @ 2024-02-23 14:33
Zhentiw
阅读(20)
评论(0)
推荐(0)
摘要:
This lesson discusses how to improve error handling by configuring custom error messages using the expect() function. use std::io; fn main() { let mut 阅读全文
posted @ 2024-02-23 14:29
Zhentiw
阅读(24)
评论(0)
推荐(0)

浙公网安备 33010602011771号