検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 53 for PhantomData (0.023 sec.)
PhantomData 16967
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ... と Mutex の実装 Light (default) Rust Coal Navy Ayu PhantomData When working with unsafe code, we can often end up ... rrect variance and drop checking. We do this using PhantomData , which is a special marker type. PhantomData cons ... ch of &'a T s, so this is exactly what we tell the PhantomData to simulate: use std::marker; struct Iter<'a, T: ' ...
https://man.plustar.jp/rust/nomicon/phantom-data.html - [similar]
Drain 10910
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ... のバージョンだけを実装しましょう。 use std::marker::PhantomData; struct Drain<'a, T: 'a> { // ライフタイムの制限を ... に `pop()` と `remove(0)` を呼び出しています。 vec: PhantomData<&'a mut Vec<T>> start: *const T, end: *const T, } ... Drain を本当に楽に実装できます。 use std::marker::PhantomData; pub struct Drain<'a, T: 'a> { vec: PhantomData<&' ...
https://man.plustar.jp/rust/nomicon/vec-drain.html - [similar]
レイアウト 9436
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ... は、安定版の Rust で実装可能です。 use std::marker::PhantomData; use std::ops::Deref; use std::mem; struct Unique< ... tr: *const T, // 変性のために *const です _marker: PhantomData<T>, // ドロップチェッカ対策 } // Send と Sync を継 ... ptr: *mut T) -> Self { Unique { ptr: ptr, _marker: PhantomData } } } impl<T> Deref for Unique<T> { type Target = ...
https://man.plustar.jp/rust/nomicon/vec-layout.html - [similar]
Final Code 9034
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ... use std::ops::{Deref, DerefMut}; use std::marker::PhantomData; use alloc::heap; struct RawVec<T> { ptr: Unique<T ... do it now? self.len = 0; Drain { iter: iter, vec: PhantomData, } } } } impl<T> Drop for Vec<T> { fn drop(&mut se ... ut *self {} } } pub struct Drain<'a, T: 'a> { vec: PhantomData<&'a mut Vec<T>>, iter: RawValIter<T>, } impl<'a, T ...
https://man.plustar.jp/rust/nomicon/vec-final.html - [similar]
print.html 7814
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ... about, which we will look at in the next section. PhantomData When working with unsafe code, we can often end up ... rrect variance and drop checking. We do this using PhantomData , which is a special marker type. PhantomData cons ... ch of &'a T s, so this is exactly what we tell the PhantomData to simulate: use std::marker; struct Iter<'a, T: ' ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
Arc と Mutex の実装 7546
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ...
https://man.plustar.jp/rust/nomicon/arc-and-mutex.html - [similar]
ドットオペレータ 7546
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ...
https://man.plustar.jp/rust/nomicon/dot-operator.html - [similar]
データレイアウト 7412
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ...
https://man.plustar.jp/rust/nomicon/data.html - [similar]
初期化されないメモリ 7412
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ...
https://man.plustar.jp/rust/nomicon/uninitialized.html - [similar]
並行性 7278
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 4.1. 型強制 4.2. ドット ...
https://man.plustar.jp/rust/nomicon/concurrency.html - [similar]
PREV 1 2 3 4 5 6 NEXT