検索

phrase: max: clip:
target: order:
Results of 61 - 70 of about 193 for let (0.062 sec.)
Disambiguating overlapping traits - 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. クロー ... m { fn get(&self) -> u8 { self.age } } fn main() { let form = Form{ username: "rustacean".to_owned(), age ... ods // named `get`. // println!("{}", form.get()); let username = <Form as UsernameWidget>::get(&form); a ... ssert_eq!("rustacean".to_owned(), username); let age = <Form as AgeWidget>::get(&form); assert_eq!( ...
https://man.plustar.jp/rust/example/trait/disambiguating.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. クロー ... in() { // Declare a variable binding // 変数を宣言 let a_binding; { let x = 2; // Initialize the binding ... g = x * x; } println!("a binding: {}", a_binding); let another_binding; // Error! Use of uninitialized bi ... 数 , 関数 , Result , エラー , By , Example , Rust , let ...
https://man.plustar.jp/rust/example/variable_bindings/declare.html - [similar]
エラーをBoxする - Rust By Example 日本語版 5638
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. クロー ... rr(e) => println!("Error: {}", e), } } fn main() { let numbers = vec!["42", "93", "18"]; let empty = vec! ... []; let strings = vec!["tofu", "93", "18"]; print(double_f ... エラー , Result , 関数 , By , Example , Rust , map , let , fmt , vec ...
https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
match - Rust By Example 日本語版 5638
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 number = 13; // TODO ^ Try different values for `n ... ッチをチェック 13..=19 => println!("A teen"), // Handle the rest of cases // その他の場合の処理 _ => printl ... をキャッチするアームをコメントアウトしてみましょう } let boolean = true; // Match is an expression too // マ ...
https://man.plustar.jp/rust/example/flow_control/match.html - [similar]
create - Rust By Example 日本語版 5638
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. クロー ... ::io::prelude::*; use std::path::Path; fn main() { let path = Path::new("lorem_ipsum.txt"); let display = ... 書き込み専用モードで開く。返り値は`io::Result<File>` let mut file = match File::create(&path) { Err(why) => ... 関数 , file , use , By , Example , Rust , display , let ...
https://man.plustar.jp/rust/example/std_misc/file/create.html - [similar]
Path - Rust By Example 日本語版 5638
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. クロー ... n `&'static str` // `&'static str`から`Path`を作成 let path = Path::new("."); // The `display` method ret ... / `display`メソッドは`Display`可能な構造体を返す。 let _display = path.display(); // `join` merges a path ... コンテナ型であるパス // を結合し、新しいパスを返す。 let new_path = path.join("a").join("b"); // Convert th ...
https://man.plustar.jp/rust/example/std_misc/path.html - [similar]
key型の変種 - Rust By Example 日本語版 5530
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. クロー ... : {}", password); println!("Attempting logon..."); let logon = Account { username, password, }; match acc ... }, _ => println!("Login failed!"), } } fn main(){ let mut accounts: Accounts = HashMap::new(); let accou ... sername: "j.everyman", password: "password123", }; let account_info = AccountInfo { name: "John Everyman" ...
https://man.plustar.jp/rust/example/std/hash/alt_key_types.html - [similar]
エラー型を定義する - Rust By Example 日本語版 5475
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. クロー ... for our error handling cases. // Now we will be able to write our own errors, defer to an underlying err ... ruct DoubleError; // Generation of an error is completely separate from how it is displayed. // There's n ... rr(e) => println!("Error: {}", e), } } fn main() { let numbers = vec!["42", "93", "18"]; let empty = vec! ...
https://man.plustar.jp/rust/example/error/multiple_error_types/define_error_type... - [similar]
loopが返す値 - Rust By Example 日本語版 5475
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. クロー ... と、それが loop 式の値として返されます。 fn main() { let mut counter = 0; let result = loop { counter += 1; ... , By , Example , エラー , テストケース , Option , let ...
https://man.plustar.jp/rust/example/flow_control/loop/return.html - [similar]
Arc - Rust By Example 日本語版 5475
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. クロー ... iable declaration is where its value is specified. let apple = Arc::new("the same apple"); for _ in 0..10 ... is a pointer to a reference // in the memory heap. let apple = Arc::clone(&apple); thread::spawn(move || ... , Result , Rust , Example , By , エラー , Option , let , テストケース , use ...
https://man.plustar.jp/rust/example/std/arc.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 NEXT