検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 12 for copy (0.024 sec.)
コンストラクタ 12841
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 組み込みコンストラクタを備えていません。 Rust には、 Copy、 Default、 Assignment、 Moveやその他諸々のコンスト ... 得ない 事を意味します。 Assignment コンストラクタや Copy コンストラクタも同様に存在しません。 なぜなら、ムー ... のセマンティクスを提供する、 2 つの機能があります。 Copy と Clone です。 Clone は Copy コンストラクタと 同じ ... に対して、 明示的に clone を呼び出す必要があります。 Copy は Clone の特別なケースで、 実装は単純に "ビットを ...
https://man.plustar.jp/rust/nomicon/constructors.html - [similar]
挿入と削除 11196
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ずつずらす必要があります。 これを行なうために、 ptr::copy を使う必要があります。 C の memmove の、 Rust 版の ... f.grow(); } unsafe { if index < self.len { // ptr::copy(src, dest, len): "src から dest まで len 個の要素を ... コピー" ptr::copy(self.ptr.offset(index as isize), self.ptr.offset(i ... = ptr::read(self.ptr.offset(index as isize)); ptr::copy(self.ptr.offset(index as isize + 1), self.ptr.offs ...
https://man.plustar.jp/rust/nomicon/vec-insert-remove.html - [similar]
チェックされないメモリ 10577
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... とが 可能となる 3 つの関数を提供しています: write 、 copycopy_nonoverlapping です。 ptr::write(ptr, val) ... が指し示すアドレスに受け取った値を 移します。 ptr::copy(src, dest, count) は、 T 型の count が占有するビッ ... 数の順序が逆転していることに注意してください!) ptr::copy_nonoverlapping(src, dest, count) は copy と同じこと ... 期 , メモリ , ptr , チェック , 配列 , Drop , 実装 , copy , val , 関数 ...
https://man.plustar.jp/rust/nomicon/unchecked-uninit.html - [similar]
チェックされるメモリ 9692
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 知っているのです! println!("{}", x); } もし値の型が Copy を実装しておらず、値が変数からムーブされたら、 論理 ... x = 0; let y = Box::new(0); let z1 = x; // i32 は Copy を実装しているため、 x はまだ有効です let z2 = y; ... // Box は Copy を実装していないため、もはや y は論理的には初期化さ ... () { let mut y = Box::new(0); let z = y; // Box が Copy を実装していないため、もはや y は論理的には初期化さ ...
https://man.plustar.jp/rust/nomicon/checked-uninit.html - [similar]
print.html 8932
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... いると言えるでしょう。 おもに transmute と transmute_copy とがこの状況を作り出します。 できるだけ速く、とくに ... er T, consider the following code: fn overwrite<T: Copy>(input: &mut T, new: &mut T) { *input = *new; } fn ... 無制限のライフタイム を生成します。 mem::transmute_copy<T, U> は、どうにかして transmute よりも 本当に更に ... 知っているのです! println!("{}", x); } もし値の型が Copy を実装しておらず、値が変数からムーブされたら、 論理 ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
Final Code 8047
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... .buf.grow(); } unsafe { if index < self.len { ptr::copy(self.ptr().offset(index as isize), self.ptr().offs ... ptr::read(self.ptr().offset(index as isize)); ptr::copy(self.ptr().offset(index as isize + 1), self.ptr(). ...
https://man.plustar.jp/rust/nomicon/vec-final.html - [similar]
トランスミュート 7535
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 無制限のライフタイム を生成します。 mem::transmute_copy<T, U> は、どうにかして transmute よりも 本当に更に ...
https://man.plustar.jp/rust/nomicon/transmutes.html - [similar]
無制限のライフタイム 7535
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... いると言えるでしょう。 おもに transmute と transmute_copy とがこの状況を作り出します。 できるだけ速く、とくに ...
https://man.plustar.jp/rust/nomicon/unbounded-lifetimes.html - [similar]
RawVec 7535
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 移動させるため、 ptr:read を必要とします。 // buf は Copy を実装しておらず、 Vec は Drop を実装しているからで ...
https://man.plustar.jp/rust/nomicon/vec-raw.html - [similar]
ドロップフラグ 7411
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... に行なうことが可能だということを 確認してきました。 Copy を実装している型に関しては、メモリの場所にあるもの ...
https://man.plustar.jp/rust/nomicon/drop-flags.html - [similar]
PREV 1 2 NEXT