検索

phrase: max: clip:
target: order:
Results of 1 - 9 of about 9 for end (0.019 sec.)
IntoIter 11593
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... <T> { buf: Unique<T>, cap: usize, start: *const T, end: *const T, } そしてこれが初期化のコードです。 impl ... safe { IntoIter { buf: ptr, cap: cap, start: *ptr, end: if cap == 0 { // このポインタのオフセットを取るこ ... xt(&mut self) -> Option<T> { if self.start == self.end { None } else { unsafe { let result = ptr::read(se ...
https://man.plustar.jp/rust/nomicon/vec-into-iter.html - [similar]
Final Code 11144
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... len) } } } struct RawValIter<T> { start: *const T, end: *const T, } impl<T> RawValIter<T> { unsafe fn new ... [T]) -> Self { RawValIter { start: slice.as_ptr(), end: if mem::size_of::<T>() == 0 { ((slice.as_ptr() as ... xt(&mut self) -> Option<T> { if self.start == self.end { None } else { unsafe { let result = ptr::read(se ...
https://man.plustar.jp/rust/nomicon/vec-final.html - [similar]
サイズが 0 の型を扱う 11018
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... セットは no-op です。つまり、現在の設計では start と end を 常に同じ値に初期化し、イテレータは何も値を返しま ... [T]) -> Self { RawValIter { start: slice.as_ptr(), end: if mem::size_of::<T>() == 0 { ((slice.as_ptr() as ... xt(&mut self) -> Option<T> { if self.start == self.end { None } else { unsafe { let result = ptr::read(se ...
https://man.plustar.jp/rust/nomicon/vec-zsts.html - [similar]
例外安全性 9221
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... 段階に分割することです。 bubble_up(heap, index): let end_index = index; while end_index != 0 && heap[end_in ... dex] < heap[parent(end_index)]: end_index = parent(end_index) let elem = ... heap[index] while index != end_index: heap[index] = heap[parent(index)] index = p ...
https://man.plustar.jp/rust/nomicon/exception-safety.html - [similar]
Drain 8538
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... vec: PhantomData<&'a mut Vec<T>> start: *const T, end: *const T, } impl<'a, T> Iterator for Drain<'a, T> ... xt(&mut self) -> Option<T> { if self.start == self.end { None -- 待った、何か似ているな。もっと圧縮してみ ... n main() { struct RawValIter<T> { start: *const T, end: *const T, } impl<T> RawValIter<T> { // 値のコンス ...
https://man.plustar.jp/rust/nomicon/vec-drain.html - [similar]
PhantomData 8430
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... omData When working with unsafe code, we can often end up in a situation where types or lifetimes are log ... s follows: struct Iter<'a, T: 'a> { ptr: *const T, end: *const T, } However because 'a is unused within t ... d::marker; struct Iter<'a, T: 'a> { ptr: *const T, end: *const T, _marker: marker::PhantomData<&'a T>, } ...
https://man.plustar.jp/rust/nomicon/phantom-data.html - [similar]
RawVec 7405
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... タイムは有効でなくてはなりません。 start: *const T, end: *const T, } // next と next_back は buf を参照して ... en; mem::forget(self); IntoIter { start: *buf.ptr, end: buf.ptr.offset(len as isize), _buf: buf, } } } } ...
https://man.plustar.jp/rust/nomicon/vec-raw.html - [similar]
Atomics 7064
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... s of complicated transformations to reduce data dependencies and eliminate dead code. In particular, they ... On the other hand, we'd also like to be able to depend on our program doing the thing we said . Hardware ... at it hadn't changed, what would the point be? The end result is that the hardware doesn't guarantee that ...
https://man.plustar.jp/rust/nomicon/atomics.html - [similar]
print.html 6381
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... 外安全性 7.2. ポイゾニング 8. 並行性 8.1. 競合 8.2. Send and Sync 8.3. Atomics 9. Vec の実装 9.1. レイアウト ... 現在、アンセーフなトレイトは 2 つしかありません。 Send は API を持たないマーカートレイトで、実装された型が ... フな Rust が 蔓延してしまい、好ましくないからです。 Send と Sync が unsafe となっているのは、スレッドの安全 ... 的な選択です。 余談ですが、 unsafe なトレイトである Send と Sync は、それらを実装する事が安全だと 実証可能な ...
https://man.plustar.jp/rust/nomicon/print.html - [similar]
PREV 1 NEXT