検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for else (0.025 sec.)
Rust By Example 日本語版 12070
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... ることを学びましょう。 型変換 式 制御フロー - if や else 、 for など。 関数 - メソッド、クロージャ、高階関数 ... t::Result { let lat_c = if self.lat >= 0.0 { 'N' } else { 'S' }; let lon_c = if self.lon >= 0.0 { 'E' } el ... D); println!("{} is {}", n, if is_big(n) { "big" } else { "small" }); // Error! Cannot modify a `const`. / ...
https://man.plustar.jp/rust/example/print.html - [similar]
if/else - Rust By Example 日本語版 11071
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... lt) Rust Coal Navy Ayu Rust By Example 日本語版 if/else if-else を用いた条件分岐は他の言語に似ています。多 ... ありません。条件式の直後にはブロックが続きます。 if-else は式の一種で、いずれの分岐先でも返り値の型は同一で ... t n = 5; if n < 0 { print!("{} is negative", n); } else if n > 0 { print!("{} is positive", n); } else { p ...
https://man.plustar.jp/rust/example/flow_control/if_else.html - [similar]
if let - Rust By Example 日本語版 10919
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... i); } // If you need to specify a failure, use an else: // デストラクトした結果が`Some()`にならない場合の ... 処理を明示したい場合、 // `else`を使用する。 if let Some(i) = letter { println!("M ... atched {:?}!", i); } else { // Destructure failed. Change to the failure cas ...
https://man.plustar.jp/rust/example/flow_control/if_let.html - [similar]
while let - Rust By Example 日本語版 10778
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... ntln!("Greater than 9, quit!"); optional = None; } else { println!("`i` is `{:?}`. Try again.", i); option ... nal` into // `Some(i)`, evaluate the block (`{}`). Else `break`. // これは次のように読める。「`let`が`opti ... ntln!("Greater than 9, quit!"); optional = None; } else { println!("`i` is `{:?}`. Try again.", i); option ...
https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
ファイルシステムとのやり取り - Rust By Example 日本語版 10778
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... vious match can be simplified using the `unwrap_or_else` method // 上のmatchは`unwrap_or_else`をメソッドを ... る。 echo("hello", &Path::new("a/b.txt")).unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); printl ... :Result<()>` fs::create_dir_all("a/c/d").unwrap_or_else(|why| { println!("! {:?}", why.kind()); }); printl ...
https://man.plustar.jp/rust/example/std_misc/fs.html - [similar]
for と range - Rust By Example 日本語版 9626
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... 1..101 { if n % 15 == 0 { println!("fizzbuzz"); } else if n % 3 == 0 { println!("fizz"); } else if n % 5 ... == 0 { println!("buzz"); } else { println!("{}", n); } } } 上記の代わりに a..=b を ... 1..=100 { if n % 15 == 0 { println!("fizzbuzz"); } else if n % 3 == 0 { println!("fizz"); } else if n % 5 ...
https://man.plustar.jp/rust/example/flow_control/for.html - [similar]
while - Rust By Example 日本語版 8333
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... n < 101 { if n % 15 == 0 { println!("fizzbuzz"); } else if n % 3 == 0 { println!("fizz"); } else if n % 5 ... == 0 { println!("buzz"); } else { println!("{}", n); } // Increment counter // カウ ... By , Example , Rust , エラー , println , Option , else ...
https://man.plustar.jp/rust/example/flow_control/while.html - [similar]
関数 - Rust By Example 日本語版 8050
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... f is_divisible_by(n, 15) { println!("fizzbuzz"); } else if is_divisible_by(n, 3) { println!("fizz"); } els ... e if is_divisible_by(n, 5) { println!("buzz"); } else { println!("{}", n); } } // When a function return ... ust , By , Example , エラー , divisible , Option , else ...
https://man.plustar.jp/rust/example/fn.html - [similar]
? - Rust By Example 日本語版 7333
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... t { if y == 0.0 { Err(MathError::DivisionByZero) } else { Ok(x / y) } } fn sqrt(x: f64) -> MathResult { if ... x < 0.0 { Err(MathError::NegativeSquareRoot) } else { Ok(x.sqrt()) } } fn ln(x: f64) -> MathResult { i ... x <= 0.0 { Err(MathError::NonPositiveLogarithm) } else { Ok(x.ln()) } } // Intermediate function fn op_(x ...
https://man.plustar.jp/rust/example/std/result/question_mark.html - [similar]
Result - Rust By Example 日本語版 7192
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 6.3. Stringとの型変換 7. 式 8. 条件分岐 ❱ 8.1. if/else 8.2. loop ❱ 8.2.1. ネストとラベル 8.2.2. loopが返す ... 敗の理由を返そう。 Err(MathError::DivisionByZero) } else { // This operation is valid, return the result wr ... if x < 0.0 { Err(MathError::NegativeSquareRoot) } else { Ok(x.sqrt()) } } pub fn ln(x: f64) -> MathResult ... x <= 0.0 { Err(MathError::NonPositiveLogarithm) } else { Ok(x.ln()) } } } // `op(x, y)` === `sqrt(ln(x / ...
https://man.plustar.jp/rust/example/std/result.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT