検索

phrase: max: clip:
target: order:
Results of 1 - 1 of about 1 for refs (0.003 sec.)
明示的アノテーション - Rust By Example 日本語版 9414
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... はライフタイムを明示的に書く場合の例です。 // `print_refs` takes two references to `i32` which have differen ... both be at // least as long as the function `print_refs`. // `print_refs`は`i32`への参照を2つとり、それぞれ ... フタイムを持つ。これらのライフタイムは最短でも`print_refs` // 関数と同じになる。 fn print_refs<'a, 'b>(x: &' ... n. // 2つの変数の借用(`&`)が関数に渡される。 print_refs(&four, &nine); // Any input which is borrowed must ...
https://man.plustar.jp/rust/example/scope/lifetime/explicit.html - [similar]
PREV 1 NEXT