検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 36 for Some (0.044 sec.)
エラーをラップする - Rust By Example 日本語版 7036
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... いるため問題なく動く。 DoubleError::Parse(ref e) => Some(e), } } } // Implement the conversion from `ParseI ... , n), Err(e) => { println!("Error: {}", e); if let Some(source) = e.source() { println!(" Caused by: {}", ...
https://man.plustar.jp/rust/example/error/multiple_error_types/wrap_error.html - [similar]
定数 - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... fn is_big(n: i32) -> bool { // Access constant in some function // 関数内から定数を参照 n > THRESHOLD } f ...
https://man.plustar.jp/rust/example/custom_types/constants.html - [similar]
OptionからResultを取り出す - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .map(|n| 2 * n) }); opt.map_or(Ok(None), |r| r.map(Some)) } fn main() { let numbers = vec!["42", "93", "18 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/option_result.htm... - [similar]
panic - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... = "lemonade" { panic!("AAAaaaaa!!!!"); } println!("Some refreshing {} is all I need.", beverage); } fn mai ...
https://man.plustar.jp/rust/example/error/panic.html - [similar]
Resultに対するエイリアス - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... r) }) } // Here, the alias again allows us to save some space. // もう一度使用。エイリアスによって再度明記 ...
https://man.plustar.jp/rust/example/error/result/result_alias.html - [similar]
構造体 - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... "y is 2, i = {:?}", i), // and you can also ignore some variables: // 一部の変数を無視することもできる。 F ...
https://man.plustar.jp/rust/example/flow_control/match/destructuring/destructure... - [similar]
Playpen - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ere ``` Using it with docs You may have noticed in some of the official Rust docs a button that says "Run" ...
https://man.plustar.jp/rust/example/meta/playpen.html - [similar]
引数のパース - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... > { println!("My name is 'match_args'. Try passing some arguments!"); }, // one argument passed // 引数が1 ... atch_args 42 This is the answer! $ ./match_args do something error: second argument not an integer usage: ...
https://man.plustar.jp/rust/example/std_misc/arg/matching.html - [similar]
Path - Rust By Example 日本語版 6624
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... panic!("new path is not a valid UTF-8 sequence"), Some(s) => println!("new path is {}", s), } } 他の Path ...
https://man.plustar.jp/rust/example/std_misc/path.html - [similar]
テストケース: 連結リスト - Rust By Example 日本語版 6513
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... リストを作成 let mut list = List::new(); // Prepend some elements // 要素を追加 list = list.prepend(1); lis ...
https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
PREV 1 2 3 4 NEXT