検索
Results of 11 - 20 of about 193 for into (0.035 sec.)
- 所有権とムーブ - Rust By Example 日本語版 6812
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
タック_上に置かれた整数 let x = 5u32; // *Copy* `x` into `y` - no resources are moved // `x`を`y`に *コピー...
i32); println!("a contains: {}", a); // *Move* `a` into `b` // `a`を`b`に *ムーブ* する。 let b = a; // Th...
e pointer address of `a` is copied (not the data) into `b`. // Both are now pointers to the same heap all...
- https://man.plustar.jp/rust/example/scope/move.html - [similar]
- エラーをBoxする - Rust By Example 日本語版 6421
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
Result<i32> { vec.first() .ok_or_else(|| EmptyVec.into()) // Converts to Box // Boxに変換 .and_then(|s| {...
s.parse::<i32>() .map_err(|e| e.into()) // Converts to Box // Boxに変換 .map(|i| 2 * i)...
- https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
- 識別子 - Rust By Example 日本語版 6290
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
() { // The `stringify!` macro converts an `ident` into a string. // `stringify!`というマクロは`ident`を文...
stringify!` will convert the expression *as it is* into a string. // `stringify!`は式を *そのままの形で* 文...
- https://man.plustar.jp/rust/example/macros/designators.html - [similar]
- macro_rules! - Rust By Example 日本語版 6290
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
らないことを示す。 () => { // The macro will expand into the contents of this block. // マクロは(訳注: プリ...
ello!"); }; } fn main() { // This call will expand into `println!("Hello");` // この呼び出しは`println!("H...
- https://man.plustar.jp/rust/example/macros.html - [similar]
- クローン - Rust By Example 日本語版 6290
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
; println!("original: {:?}", pair); // Move `pair` into `moved_pair`, moves resources // `pair`を`moved_pa...
をアンコメントしてみましょう。 // Clone `moved_pair` into `cloned_pair` (resources are included) // `moved_p...
- https://man.plustar.jp/rust/example/trait/clone.html - [similar]
- フォーマット - Rust By Example 日本語版 6160
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
r, and this method must write the formatted string into it // `f` はバッファです。このメソッドは // ここに...
ormat!`, but it will write the formatted string // into a buffer (the first argument) // `write!`は`format...
- https://man.plustar.jp/rust/example/hello/print/fmt.html - [similar]
- 明示的アノテーション - Rust By Example 日本語版 6160
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
an that of `y`. A short lifetime cannot be coerced into a longer one. // `&_x`のライフタイムは`y`のそれより...
9); // Borrows (`&`) of both variables are passed into the function. // 2つの変数の借用(`&`)が関数に渡され...
- https://man.plustar.jp/rust/example/scope/lifetime/explicit.html - [similar]
- ハッシュ集合 - Rust By Example 日本語版 6160
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
ain() { let mut a: HashSet<i32> = vec![1i32, 2, 3].into_iter().collect(); let mut b: HashSet<i32> = vec![2...
i32, 3, 4].into_iter().collect(); assert!(a.insert(4)); assert!(a....
- https://man.plustar.jp/rust/example/std/hash/hashset.html - [similar]
- 要素の捕捉 - Rust By Example 日本語版 6030
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
this must take by value. A copy type // would copy into the closure leaving the original untouched. // A n...
-copy must move and so `movable` immediately moves into // the closure. // `mem::drop`は`T`(ジェネリック型...
- https://man.plustar.jp/rust/example/fn/closures/capture.html - [similar]
- 文字列 - Rust By Example 日本語版 6030
- Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2.
...
型推論 5.4. エイリアス 6. 型変換 ❱ 6.1. FromおよびInto 6.2. TryFromおよびTryInto 6.3. Stringとの型変換 7....
().rev() { println!("> {}", word); } // Copy chars into a vector, sort and remove duplicates // 文字をベク...
out as-is. This is where raw string literals come into play. fn main() { let raw_str = r"Escapes don't wo...
- https://man.plustar.jp/rust/example/std/str.html - [similar]