検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 193 for box (0.062 sec.)
ミュータビリティ - Rust By Example 日本語版 13581
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... 移譲した際に変更できます。 fn main() { let immutable_box = Box::new(5u32); println!("immutable_box contains ... {}", immutable_box); // Mutability error // ミュータビリティエラー // ...
https://man.plustar.jp/rust/example/scope/move/mut.html - [similar]
Box, スタックとヒープ - Rust By Example 日本語版 12853
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... fault) Rust Coal Navy Ayu Rust By Example 日本語版 Box, スタックとヒープ Rustにおいて、すべての値はデフォ ... ルトでスタックに割り当てられます。 Box<T> を作成することで、値を ボックス化 、すなわちヒー ...
https://man.plustar.jp/rust/example/std/box.html - [similar]
エラーをBoxする - Rust By Example 日本語版 11212
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... st Coal Navy Ayu Rust By Example 日本語版 エラーを Box する 元のエラーを維持しながらシンプルなコードを書く ... には、 Box してしまうと良いでしょう。欠点として、元のエラー型 ...
https://man.plustar.jp/rust/example/error/multiple_error_types/boxing_errors.htm... - [similar]
借用 - Rust By Example 日本語版 10854
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... いうことです。 // This function takes ownership of a box and destroys it // この関数はボックスの所有権を奪い ... 、破棄する。 fn eat_box_i32(boxed_i32: Box<i32>) { println!("Destroying bo ...
https://man.plustar.jp/rust/example/scope/borrow.html - [similar]
構造体の場合 - Rust By Example 日本語版 8583
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... ネリック型)を持つパブリックな構造体 pub struct OpenBox<T> { pub contents: T, } // A public struct with a ... リックな構造体 #[allow(dead_code)] pub struct ClosedBox<T> { contents: T, } impl<T> ClosedBox<T> { // A pu ...
https://man.plustar.jp/rust/example/mod/struct_visibility.html - [similar]
Returning Traits with dyn - Rust By Example 日本語版 8029
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... ng a trait object directly, our functions return a Box which contains some Animal . A box is just a refer ... o write the return type with the dyn keyword, e.g. Box<dyn Animal> . struct Sheep {} struct Cow {} trait ...
https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
RAII - Rust By Example 日本語版 7670
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... けのものではありません。例えばヒープメモリを確保する Box<T> のように、変数はメモリ上の資源を 保有 する場合も ... です!簡単な例で説明しましょう。 // raii.rs fn create_box() { // Allocate an integer on the heap // 整数をヒ ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
所有権とムーブ - Rust By Example 日本語版 7214
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... 数はヒープメモリ上の資源の所有権を取る。 fn destroy_box(c: Box<i32>) { println!("Destroying a box that con ... teger // `a`は_ヒープ_上の整数へのポインタ let a = Box::new(5i32); println!("a contains: {}", a); // *Mov ...
https://man.plustar.jp/rust/example/scope/move.html - [similar]
クローン - Rust By Example 日本語版 6942
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... として持つタプル #[derive(Clone, Debug)] struct Pair(Box<i32>, Box<i32>); fn main() { // Instantiate `Unit` ... air` // `Pair`のインスタンスを作成 let pair = Pair(Box::new(1), Box::new(2)); println!("original: {:?}", ...
https://man.plustar.jp/rust/example/trait/clone.html - [similar]
?の他の活用法 - Rust By Example 日本語版 6855
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... 取り出す 18.4.2. エラー型を定義する 18.4.3. エラーをBoxする 18.4.4. ?の他の活用法 18.4.5. エラーをラップする ... ultをイテレートする 19. 標準ライブラリの型 ❱ 19.1. Box, スタックとヒープ 19.2. ベクタ型 19.3. 文字列 19.4 ... その場での対応として、エラーをライブラリのエラーからboxされたエラーへと map していました。 .and_then(|s| s. ... std::error; use std::fmt; // Change the alias to `Box<dyn error::Error>`. // エイリアスを`Box<error::Err ...
https://man.plustar.jp/rust/example/error/multiple_error_types/reenter_question_... - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT