検索
Results of 1 - 10 of about 12 for input (0.002 sec.)
- 省略 - Rust By Example 日本語版 14574
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ライフタイムの省略 の項を見てください。 // `elided_input` and `annotated_input` essentially have identical...signatures // because the lifetime of `elided_input` is inferred by the compiler: // `elided_input`のラ...2つは同一のライフタイムシグネチャを持つ。 fn elided_input(x: &i32) { println!("`elided_input`: {}", x); } fn...annotated_input<'a>(x: &'a i32) { println!("`annotated_input`: {}"... - https://man.plustar.jp/rust/example/scope/lifetime/elision.html - [similar]
- スタティックライフタイム - Rust By Example 日本語版 9445
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ts `'static` // lifetime is coerced to that of the input argument. // `NUM`への参照を返す。ライフタイムは`'...erally does not: use std::fmt::Debug; fn print_it( input: impl Debug + 'static ) { println!( "'static value...passed in is: {:?}", input ); } fn main() { // i is owned and contains no ref... - https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
- OptionからResultを取り出す - Rust By Example 日本語版 8330
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...ed is {:?}", double_first(empty)); // Error 1: the input vector is empty // エラー1:入力が空ベクトル printl... - https://man.plustar.jp/rust/example/error/multiple_error_types/option_result.htm... - [similar]
- 複数のエラー型 - Rust By Example 日本語版 8330
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...bled is {}", double_first(empty)); // Error 1: the input vector is empty // エラー1:入力が空ベクトル printl... - https://man.plustar.jp/rust/example/error/multiple_error_types.html - [similar]
- read lines - Rust By Example 日本語版 8330
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...AsRef<Path> . That's what read_lines() expects as input. use std::fs::File; use std::io::{self, BufRead};... - https://man.plustar.jp/rust/example/std_misc/file/read_lines.html - [similar]
- 捕捉時の型推論 - Rust By Example 日本語版 8207
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...r" fn apply<F>(f: F) where // The closure takes no input and returns nothing. // クロージャには引数も返り値... - https://man.plustar.jp/rust/example/fn/closures/input_parameters.html - [similar]
- 関連型 - Rust By Example 日本語版 8207
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...r { // Specify what types `A` and `B` are. If the `input` type // is `Container(i32, i32)`, the `output` ty... - https://man.plustar.jp/rust/example/generics/assoc_items/types.html - [similar]
- 明示的アノテーション - Rust By Example 日本語版 8207
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...が関数に渡される。 print_refs(&four, &nine); // Any input which is borrowed must outlive the borrower. // In... - https://man.plustar.jp/rust/example/scope/lifetime/explicit.html - [similar]
- 関数 - Rust By Example 日本語版 8207
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...なデータへの参照になるならば、禁止されている // One input reference with lifetime `'a` which must live // at... - https://man.plustar.jp/rust/example/scope/lifetime/fn.html - [similar]
- パイプ - Rust By Example 日本語版 8207
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...t, otherwise `wc` wouldn't start processing the // input we just sent. // `stdin`は上のプロセスコールのあと... - https://man.plustar.jp/rust/example/std_misc/process/pipe.html - [similar]