検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 10 for memory (0.029 sec.)
所有権とムーブ - Rust By Example 日本語版 13050
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... his function takes ownership of the heap allocated memory // この関数はヒープメモリ上の資源の所有権を取る。 ... that contains {}", c); // `c` is destroyed and the memory freed // `c`は破棄されメモリは開放される。 } fn ma ... ss the data, because it no longer owns the // heap memory // エラー! `a`は所有権を持たないため、ヒープ上のデ ... his function takes ownership of the heap allocated memory from `b` // この関数はヒープメモリ上の所有権を`b`か ...
https://man.plustar.jp/rust/example/scope/move.html - [similar]
RAII - Rust By Example 日本語版 11173
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... Box::new(3i32); // `_box1` is destroyed here, and memory gets freed // `_box1`はここで破棄され、メモリは解放 ... Box::new(4i32); // `_box3` is destroyed here, and memory gets freed // `_box3`はここで破棄され、メモリは解放 ... s just for fun // There's no need to manually free memory! // お遊びで大量のボックスを作る。 // もちろん手動 ... create_box(); } // `_box2` is destroyed here, and memory gets freed // `_box2`はここで破棄され、メモリは解放 ...
https://man.plustar.jp/rust/example/scope/raii.html - [similar]
Returning Traits with dyn - Rust By Example 日本語版 9492
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ent implementations will need different amounts of memory. However, there's an easy workaround. Instead of r ... ns some Animal . A box is just a reference to some memory in the heap. Because a reference has a statically- ... o be as explicit as possible whenever it allocates memory on the heap. So if your function returns a pointer ...
https://man.plustar.jp/rust/example/trait/dyn.html - [similar]
文字列 - Rust By Example 日本語版 8867
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... // A reference to a string allocated in read only memory // (以下の例では型を明示していますが、これらは必須 ... ではありません。) // read only memory上に割り当てられた文字列への参照 let pangram: &'stat ... ice = String::from("I like dogs"); // Allocate new memory and store the modified string there // 新しくメモリ ...
https://man.plustar.jp/rust/example/std/str.html - [similar]
Arc - Rust By Example 日本語版 8456
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... ference pointer for the location of a value in the memory heap while increasing the reference counter. As it ... cation as it is a pointer to a reference // in the memory heap. let apple = Arc::clone(&apple); thread::spaw ...
https://man.plustar.jp/rust/example/std/arc.html - [similar]
スタティックライフタイム - Rust By Example 日本語版 8241
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... tic lifetime, and both are stored in the read-only memory of the binary: static 宣言とともに定数を作成する。 ... 、プリントする let static_string = "I'm in read-only memory"; println!("static_string: {}", static_string); // ...
https://man.plustar.jp/rust/example/scope/lifetime/static_lifetime.html - [similar]
安全でない操作 - Rust By Example 日本語版 8241
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... held is that the pointer passed in points to valid memory and that the memory pointed to is of the correct t ...
https://man.plustar.jp/rust/example/unsafe.html - [similar]
read lines - Rust By Example 日本語版 7401
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... rocess is more efficient than creating a String in memory especially working with larger files. 関連キーワー ...
https://man.plustar.jp/rust/example/std_misc/file/read_lines.html - [similar]
ミュータビリティ - Rust By Example 日本語版 7186
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... is a reference to a string allocated in read only memory // `&'static str`はread-onlyメモリ上の文字列への参 ...
https://man.plustar.jp/rust/example/scope/borrow/mut.html - [similar]
panic! - Rust By Example 日本語版 7186
Introduction 1. Hello World ❱ 1.1. コメント 1.2. フォーマットしてプリント ❱ 1.2.1. デバッグ 1.2. ... panic.rs && valgrind ./panic ==4401== Memcheck, a memory error detector ==4401== Copyright (C) 2002-2013, a ...
https://man.plustar.jp/rust/example/std/panic.html - [similar]
PREV 1 NEXT