検索

phrase: max: clip:
target: order:
Results of 51 - 60 of about 193 for let (0.060 sec.)
?の導入 - Rust By Example 日本語版 5801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... _number_str: &str) -> Result<i32, ParseIntError> { let first_number = first_number_str.parse::<i32>()?; l ... _number_str: &str) -> Result<i32, ParseIntError> { let first_number = try!(first_number_str.parse::<i32>( ... )); let second_number = try!(second_number_str.parse::<i32 ...
https://man.plustar.jp/rust/example/error/result/enter_question_mark.html - [similar]
幽霊型パラメータ - Rust By Example 日本語版 5801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... and `f64` are the hidden parameters. // PhantomTuple type specified as `<char, f32>`. // <char, f32>と型 ... 宣言されたPhantomTupleを作成 let _tuple1: PhantomTuple<char, f32> = PhantomTuple('Q ... ', PhantomData); // PhantomTuple type specified as `<char, f64>`. // <chr, f64>のPha ...
https://man.plustar.jp/rust/example/generics/phantom.html - [similar]
関数 - Rust By Example 日本語版 5801
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... タに対する参照を返すことになってしまう。 fn main() { let x = 7; let y = 9; print_one(&x); print_multi(&x, & ... y); let z = pass_x(&x, &y); print_one(z); let mut t = 3; a ... tions 関連キーワード: 関数 , 参照 , ライフタイム , let , Result , Example , By , Rust , エラー , Option ...
https://man.plustar.jp/rust/example/scope/lifetime/fn.html - [similar]
Resultのmap - Rust By Example 日本語版 5747
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... wer. // ここは以前と変わらず、妥当な解を与えます。 let twenty = multiply("10", "2"); print(twenty); // Th ... / こちらは今度は有益なエラーメッセージを与えます。 let tt = multiply("t", "2"); print(tt); } 幸運にも、 O ... wer. // ここは以前と変わらず、妥当な解を与えます。 let twenty = multiply("10", "2"); print(twenty); // Th ...
https://man.plustar.jp/rust/example/error/result/result_map.html - [similar]
複数のジェネリック境界 - Rust By Example 日本語版 5747
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... :?}`", t); println!("u: `{:?}`", u); } fn main() { let string = "words"; let array = [1, 2, 3]; let vec = ... 複数 , 境界 , 関数 , Result , By , Rust , Example , let , エラー , compare ...
https://man.plustar.jp/rust/example/generics/multi_bounds.html - [similar]
RAII - Rust By Example 日本語版 5747
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... ate an integer on the heap // 整数をヒープ上に確保 let _box1 = Box::new(3i32); // `_box1` is destroyed he ... ate an integer on the heap // 整数をヒープ上に確保 let _box2 = Box::new(5i32); // A nested scope: // ネス ... ate an integer on the heap // 整数をヒープ上に確保 let _box3 = Box::new(4i32); // `_box3` is destroyed he ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
子プロセス - Rust By Example 日本語版 5747
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... を行います。 use std::process::Command; fn main() { let output = Command::new("rustc") .arg("--version") . ... process: {}", e) }); if output.status.success() { let s = String::from_utf8_lossy(&output.stdout); print ... rustc succeeded and stdout was:\n{}", s); } else { let s = String::from_utf8_lossy(&output.stderr); print ...
https://man.plustar.jp/rust/example/std_misc/process.html - [similar]
捕捉時の型推論 - Rust By Example 日本語版 5693
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... Fn(i32) -> i32 { f(3) } fn main() { use std::mem; let greeting = "hello"; // A non-copy type. // `to_own ... from borrowed one // コピーではなくmoveが起きる型 let mut farewell = "goodbye".to_owned(); // Capture 2 ... g`は参照を、 // `farewell`は値をそれぞれ捕捉する。 let diary = || { // `greeting` is by reference: requir ...
https://man.plustar.jp/rust/example/fn/closures/input_parameters.html - [similar]
テストケース: 単位を扱う - Rust By Example 日本語版 5693
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... // `one_foot`が幽霊型`Inch`を持つように明示する。 let one_foot: Length<Inch> = Length(12.0, PhantomData) ... . // `one_meter`が幽霊型`Mm`を持つように明示する。 let one_meter: Length<Mm> = Length(1000.0, PhantomData ... 代わりにそのコピーを作り、`self`、`rhs`として扱う。 let two_feet = one_foot + one_foot; let two_meters = o ...
https://man.plustar.jp/rust/example/generics/phantom/testcase_units.html - [similar]
ファイルシステムとのやり取り - Rust By Example 日本語版 5693
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 構造体 8.5.2. ガード 8.5.3. バインディング 8.6. if let 8.7. while let 9. 関数 ❱ 9.1. メソッド 9.2. クロー ... ルな実装 fn cat(path: &Path) -> io::Result<String> { let mut f = File::open(path)?; let mut s = String::new ... fn echo(s: &str, path: &Path) -> io::Result<()> { let mut f = File::create(path)?; f.write_all(s.as_byte ... ation: fn cat(path: &Path) -> io::Result<String> { let mut f = File::open(path)?; let mut s = String::new ...
https://man.plustar.jp/rust/example/std_misc/fs.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 NEXT