検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 44 for try (0.023 sec.)
Documentation testing - Rust By Example 日本語版 13063
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... ocumentation comes to the rescue: one may write fn try_main() -> Result<(), ErrorType> , hide it and unwr ... complicated? Here's an example: /// Using hidden `try_main` in doc tests. /// /// ``` /// # // hidden li ... #` symbol, but they're still compileable! /// # fn try_main() -> Result<(), String> { // line that wraps ...
https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
Rust By Example 日本語版 12217
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... // println!("Hello, world!"); // Run it. See? Now try deleting the two slashes, and run it again. // でし ... t out everything * in this main() function. /*/*/* Try it yourself! */*/*/ */ /* * こちらはもう一つのタイ ... ly with block comments // than with line comments. Try deleting the comment delimiters // to change the r ...
https://man.plustar.jp/rust/example/print.html - [similar]
?の導入 - Rust By Example 日本語版 10788
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... multiply("10", "2")); print(multiply("t", "2")); } try! マクロ ? ができる前、同様の動作を try! マクロによ ... は ? オペレータが推奨されていますが、古いコードでは try! に出会うこともあります。 try! を使って前の例と同じ ... -> Result<i32, ParseIntError> { let first_number = try!(first_number_str.parse::<i32>()); let second_numb ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
Raw identifiers - Rust By Example 日本語版 10650
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... 2015 edition of Rust that exports a function named try . This keyword is reserved for a new feature in th ... e the function. extern crate foo; fn main() { foo::try(); } You'll get this error: error: expected identi ... fier, found keyword `try` --> src/main.rs:4:4 | 4 | foo::try(); | ^^^ expec ...
https://man.plustar.jp/rust/example/compatibility/raw_identifiers.html - [similar]
TryFromおよびTryInto - Rust By Example 日本語版 10512
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 TryFrom および TryInto From および Into と同様に、 Try ... From および TryInto も型変換を行うジェネリックなトレイトです。 Fro ... m / Into と異なり、 TryFrom / TryInto トレイトは失敗する可能性のある型変換 ...
https://man.plustar.jp/rust/example/conversion/try_from_try_into.html - [similar]
プライベートとパブリック - Rust By Example 日本語版 9082
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... od::nested::public_function_in_my_mod(); // TODO ^ Try uncommenting this line // Private items of a modul ... ライベート。 //my_mod::private_function(); // TODO ^ Try uncommenting this line // TODO ^ 試しにこの行をアン ... ト。 //my_mod::nested::private_function(); // TODO ^ Try uncommenting this line // TODO ^ 試しにこの行をアン ...
https://man.plustar.jp/rust/example/mod/visibility.html - [similar]
match - Rust By Example 日本語版 8944
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... なりません。 fn main() { let number = 13; // TODO ^ Try different values for `number` println!("Tell me ab ... | 7 | 11 => println!("This is a prime"), // TODO ^ Try adding 13 to the list of prime values // TODO ^ 素 ... 場合の処理 _ => println!("Ain't special"), // TODO ^ Try commenting out this catch-all arm // TODO ^ この全 ...
https://man.plustar.jp/rust/example/flow_control/match.html - [similar]
テストケース: リスト - Rust By Example 日本語版 8790
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... 。 以下のように ? を write! に対して使用します。 // Try `write!` to see if it errors. If it errors, return ... "{}", value)?; Alternatively, you can also use the try! macro, which works the same way. This is a bit mo ... but you may still see it in older Rust code. Using try! looks like this: try!(write!(f, "{}", value)); ? ...
https://man.plustar.jp/rust/example/hello/print/print_display/testcase_list.html - [similar]
Option - Rust By Example 日本語版 8222
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... d // この関数は失敗する割り算を扱うことができる fn try_division(dividend: i32, divisor: i32) { // `Option ... ", dividend, divisor, quotient) }, } } fn main() { try_division(4, 2); try_division(1, 0); // Binding `No ...
https://man.plustar.jp/rust/example/std/option.html - [similar]
while let - Rust By Example 日本語版 8083
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7. 式 8. 条 ... l`を作成 let mut optional = Some(0); // Repeatedly try this test. // 変数の照合を繰り返し行う。 loop { ma ... optional = None; } else { println!("`i` is `{:?}`. Try again.", i); optional = Some(i + 1); } // ^ Requir ... optional = None; } else { println!("`i` is `{:?}`. Try again.", i); optional = Some(i + 1); } // ^ Less r ...
https://man.plustar.jp/rust/example/flow_control/while_let.html - [similar]
PREV 1 2 3 4 5 NEXT