検索

phrase: max: clip:
target: order:
Results of 81 - 90 of about 193 for let (0.066 sec.)
クロージャを受け取る関数 - Rust By Example 日本語版 5312
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. クロー ... apply<F>(f: F) where F: Fn() { f(); } fn main() { let x = 7; // Capture `x` into an anonymous type and i ... &self)}`) // その構造体を`print`にアサインする。 let print = || println!("{}", x); apply(print); } 参照 ... , By , Example , Rust , エラー , Option , FnOnce , let ...
https://man.plustar.jp/rust/example/fn/closures/anonymity.html - [similar]
ディスプレイ - Rust By Example 日本語版 5312
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() { // Import (via `use`) the `fmt` module to make it available. // (`use`を使用し、)`fmt`モ ... f, "x: {}, y: {}", self.x, self.y) } } fn main() { let minmax = MinMax(0, 14); println!("Compare structur ... ay: {}", minmax); println!("Debug: {:?}", minmax); let big_range = MinMax(-300, 300); let small_range = M ...
https://man.plustar.jp/rust/example/hello/print/print_display.html - [similar]
DRY (Don't Repeat Yourself) - Rust By Example 日本語版 5312
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. クロー ... => { #[test] fn $func() { for size in 0usize..10 { let mut x: Vec<_> = iter::repeat($x).take(size).collec ... t(); let y: Vec<_> = iter::repeat($y).take(size).collect(); ... let z: Vec<_> = iter::repeat($z).take(size).collect(); ...
https://man.plustar.jp/rust/example/macros/dry.html - [similar]
借用 - Rust By Example 日本語版 5312
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. クロー ... 2, and a stacked i32 // ボックス化された整数を作成 let boxed_i32 = Box::new(5_i32); let stacked_i32 = 6_i ... side the box // ボックス内の要素に対する参照を取得 let _ref_to_i32: &i32 = &boxed_i32; // Error! // Can't ... destroy `boxed_i32` while the inner value is borrowed later in scope. // エラ ...
https://man.plustar.jp/rust/example/scope/borrow.html - [similar]
ライフタイム - Rust By Example 日本語版 5312
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. クロー ... borrow2`の存続期間は一切重なりません。 fn main() { let i = 3; // Lifetime for `i` starts. ─────────────── ... ─┐ // │ { // │ let borrow1 = &i; // `borrow1` lifetime starts. ──┐│ / ... ───────────────────────────────┘│ // │ // │ { // │ let borrow2 = &i; // `borrow2` lifetime starts. ──┐│ / ...
https://man.plustar.jp/rust/example/scope/lifetime.html - [similar]
Documentation testing - Rust By Example 日本語版 5312
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. クロー ... we're testing `doccomments` crate: /// /// ``` /// let result = doccomments::add(2, 3); /// assert_eq!(re ... es two numbers. /// /// # Examples /// /// ``` /// let result = doccomments::div(10, 2); /// assert_eq!(r ... elines . It allows using examples from docs as complete code snippets. But using ? makes compilation fail ...
https://man.plustar.jp/rust/example/testing/doc_testing.html - [similar]
関連型が必要になる状況 - Rust By Example 日本語版 5258
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. クロー ... container.last() - container.first() } fn main() { let number_1 = 3; let number_2 = 10; let container = C ...
https://man.plustar.jp/rust/example/generics/assoc_items/the_problem.html - [similar]
関連型 - Rust By Example 日本語版 5258
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. クロー ... Define generic types here which methods will be able to utilize. // メソッドが使用できるジェネリック型を ... container.last() - container.first() } fn main() { let number_1 = 3; let number_2 = 10; let container = C ...
https://man.plustar.jp/rust/example/generics/assoc_items/types.html - [similar]
デバッグ - Rust By Example 日本語版 5258
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. クロー ... Person<'a> { name: &'a str, age: u8 } fn main() { let name = "Peter"; let age = 27; let peter = Person { ...
https://man.plustar.jp/rust/example/hello/print/print_debug.html - [similar]
構造体の場合 - Rust By Example 日本語版 5258
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. クロー ... リックな構造体は、通常通り // インスタンス化できる。 let open_box = my::OpenBox { contents: "public informa ... !`ClosedBox`にはプライベートな属性が存在します。 //let closed_box = my::ClosedBox { contents: "classified ... ックなコンストラクタを介して作成 // することは可能。 let _closed_box = my::ClosedBox::new("classified infor ...
https://man.plustar.jp/rust/example/mod/struct_visibility.html - [similar]