検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 53 for Drop (0.026 sec.)
Drop Check 14006
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... と Mutex の実装 Light (default) Rust Coal Navy Ayu Drop Check We have seen how lifetimes provide us some f ... to be a meaningless distinction. Nothing ever gets dropped at the same time as another, right? This is why ... eates its own scope, clearly establishing that one drops before the other. However, what if we do the foll ...
https://man.plustar.jp/rust/nomicon/dropck.html - [similar]
デストラクタ 13842
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... yu デストラクタ 言語が 実際に 提供しているものは、 Drop トレイトを通じた完全に自動的な デストラクタで、以下 ... のメソッドを提供しています。 fn drop(&mut self); このメソッドは、型が行なっていたことを ... なんとか終わらせるための時間を、型に 与えます。 drop が実行された後、 Rust は self の全てのフィールドの ...
https://man.plustar.jp/rust/nomicon/destructors.html - [similar]
print.html 9630
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... の違いは、フィールドに名前がないことだけです。 型に drop flags が付いていても、その型は追加されます。 enum ... called successfully. string would subsequently be dropped, and forever_str would point to freed memory wh ... , // invariant over H, because invariance wins } } Drop Check We have seen how lifetimes provide us some f ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
デアロケーティング 9406
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... グ 次に、大量のリソースをリークしてしまわないよう、 Drop を実装するべきです。 簡単な方法は、単に pop を、 N ... して、 バッファをデアロケートする方法です。もし T: !Drop である場合、 pop を 呼ぶことは必要ない事に注意して ... 。理論的には、 T をドロップする必要が あるかを needs_drop で確かめ、 pop の呼び出しを省略することが出来ます。 ...
https://man.plustar.jp/rust/nomicon/vec-dealloc.html - [similar]
PhantomData 9243
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... ing this is necessary to have correct variance and drop checking. We do this using PhantomData , which is ... ing other useful such as the information needed by drop check. Iter logically contains a bunch of &'a T s, ... ws up in at least one field. Good to go! Nope. The drop checker will generously determine that Vec<T> does ...
https://man.plustar.jp/rust/nomicon/phantom-data.html - [similar]
RawVec 9183
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... (ptr as *mut _); self.cap = new_cap; } } } impl<T> Drop for RawVec<T> { fn drop(&mut self) { if self.cap ! ... p()` // * `self.grow -> self.buf.grow()` } impl<T> Drop for Vec<T> { fn drop(&mut self) { while let Some(_ ... を参照していないため、文字通り変更しません impl<T> Drop for IntoIter<T> { fn drop(&mut self) { // 全ての要 ...
https://man.plustar.jp/rust/nomicon/vec-raw.html - [similar]
Final Code 8975
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... (ptr as *mut _); self.cap = new_cap; } } } impl<T> Drop for RawVec<T> { fn drop(&mut self) { let elem_size ... in { iter: iter, vec: PhantomData, } } } } impl<T> Drop for Vec<T> { fn drop(&mut self) { while let Some(_ ... ) -> Option<T> { self.iter.next_back() } } impl<T> Drop for IntoIter<T> { fn drop(&mut self) { for _ in &m ...
https://man.plustar.jp/rust/nomicon/vec-final.html - [similar]
チェックされないメモリ 8156
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... が初期化していると思っている場合、 Rust は 古い値を Drop しようとします! Rust に、値が初期化されていると信じ ... ], Box::new(i as u32)); } } println!("{:?}", x); } Drop を実装していない型や、 Drop を実装する型を含まない ... に、もし部分的に初期化されている構造体のフィールドに Drop を 実装しているものが存在しない場合、このフィールド ...
https://man.plustar.jp/rust/nomicon/unchecked-uninit.html - [similar]
Drain 8037
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... ) -> Option<T> { self.iter.next_back() } } impl<T> Drop for IntoIter<T> { fn drop(&mut self) { for _ in &m ... Option<T> { self.iter.next_back() } } impl<'a, T> Drop for Drain<'a, T> { fn drop(&mut self) { for _ in & ...
https://man.plustar.jp/rust/nomicon/vec-drain.html - [similar]
IntoIter 7992
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 高階トレイト境界 3.7. Subtyping and Variance 3.8. Drop Check 3.9. PhantomData 3.10. 借用の分割 4. 型変換 ... ーションの所有権を受け取るので、それを解放するために Drop を 実装する必要があります。しかし、イテレーションの ... 最中に返されなかった要素を ドロップするためにも Drop も実装する必要があります。 impl<T> Drop for IntoIt ... er<T> { fn drop(&mut self) { if self.cap != 0 { // 残っている要素を ...
https://man.plustar.jp/rust/nomicon/vec-into-iter.html - [similar]
PREV 1 2 3 4 5 6 NEXT