検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 24 for Reference (0.035 sec.)
捕捉時の型推論 - Rust By Example 日本語版 7923
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... .to_owned(); // Capture 2 variables: `greeting` by reference and // `farewell` by value. // 変数を2つ補足。`gre ... ぞれ捕捉する。 let diary = || { // `greeting` is by reference: requires `Fn`. // `greeting`は参照なので、`Fn`が必 ... ion forces `farewell` to be captured by // mutable reference. Now requires `FnMut`. // `farewell`の値を変更する ...
https://man.plustar.jp/rust/example/fn/closures/input_parameters.html - [similar]
Returning Traits with dyn - Rust By Example 日本語版 7639
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... a Box which contains some Animal . A box is just a reference to some memory in the heap. Because a reference ha ...
https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
テストケース: 連結リスト - Rust By Example 日本語版 7556
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... / concrete type `T` is preferred over a match on a reference `&T` // after Rust 2018 you can use self here and ... ail, because `self` is borrowed; // instead take a reference to the tail // `self`をすでに借用しているので、tai ...
https://man.plustar.jp/rust/example/custom_types/enum/testcase_linked_list.html - [similar]
refパターン - Rust By Example 日本語版 7556
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... する際にも有用 let _copy_of_x = { // `ref_to_x` is a reference to the `x` field of `point`. // `ref_to_x`は`point ... // `ref` can be paired with `mut` to take mutable references. // `ref`は`mut`とともに使い、ミュータブルな参照を ... ate the `y` field of `mutable_point` via a mutable reference. // `mutable_point`の`y`というミュータブルなフィー ...
https://man.plustar.jp/rust/example/scope/borrow/ref.html - [similar]
ライフタイム境界 - Rust By Example 日本語版 7556
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... struct Ref<'a, T: 'a>(&'a T); // `Ref` contains a reference to a generic type `T` that has // an unknown lifet ... ime `'a`. `T` is bounded such that any // *references* in `T` must outlive `'a`. Additionally, the life ... g { println!("`print`: t is {:?}", t); } // Here a reference to `T` is taken where `T` implements // `Debug` an ... d all *references* in `T` outlive `'a`. In // addition, `'a` must o ...
https://man.plustar.jp/rust/example/scope/lifetime/lifetime_bounds.html - [similar]
Testcase: map-reduce - Rust By Example 日本語版 7556
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... event data races. The aliasing rules (one writable reference XOR many readable references) automatically preven ... by each thread. Note that, although we're passing references across thread boundaries, Rust understands that w ... e're only passing read-only references, and that thus no unsafety or data races can occu ... for individual calculation // each chunk will be a reference (&str) into the actual data let chunked_data = dat ...
https://man.plustar.jp/rust/example/std_misc/threads/testcase_mapreduce.html - [similar]
要素の捕捉 - Rust By Example 日本語版 7472
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // `println!` only requires arguments by immutable reference so it doesn't // impose anything more restrictive. ... in, because the closure only holds // an immutable reference to `color`. // `color`を再びイミュータブルで借用す ...
https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
文字列 - Rust By Example 日本語版 7472
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // (all the type annotations are superfluous) // A reference to a string allocated in read only memory // (以下 ... cters is given in the 'Tokens' chapter of the Rust Reference. 関連キーワード: string , let , println , escaped ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
cfg - Rust By Example 日本語版 7205
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... es. It's definitely *not* linux!"); } } 参照 参照( reference ) , cfg! , マクロ . 関連キーワード: cfg , 関数 , R ...
https://man.plustar.jp/rust/example/attribute/cfg.html - [similar]
Partial moves - Rust By Example 日本語版 7205
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ucturing of a single variable, both by-move and by-reference pattern bindings can be used at the same time. Doi ... rwards as a whole, however the parts that are only referenced (and not moved) can still be used. fn main() { #[ ... }; // `name` is moved out of person, but `age` is referenced let Person { name, ref age } = person; println!(" ...
https://man.plustar.jp/rust/example/scope/move/partial_move.html - [similar]
PREV 1 2 3 NEXT