検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 53 for unsafe (0.036 sec.)
リーク 7203
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... usize, } impl<T> Rc<T> { fn new(data: T) -> Self { unsafe { // もし heap::allocate がこのように動作したらよい ... }); Rc { ptr: ptr } } } fn clone(&self) -> Self { unsafe { (*self.ptr).ref_count += 1; } Rc { ptr: self.ptr ... } } impl<T> Drop for Rc<T> { fn drop(&mut self) { unsafe { (*self.ptr).ref_count -= 1; if (*self.ptr).ref_c ...
https://man.plustar.jp/rust/nomicon/leaking.html - [similar]
PhantomData 7203
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... ) Rust Coal Navy Ayu PhantomData When working with unsafe code, we can often end up in a situation where typ ...
https://man.plustar.jp/rust/nomicon/phantom-data.html - [similar]
チェックされないメモリ 6876
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... nst SIZE: usize = 10; let mut x: [Box<u32>; SIZE]; unsafe { // Rust に x が完全に初期化されたと思わせます x ...
https://man.plustar.jp/rust/nomicon/unchecked-uninit.html - [similar]
アロケーティング 6876
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... of::<T>() != 0, "We're not ready to handle ZSTs"); unsafe { // EMPTY を欲しい実際のポインタ型にキャストする必 ... これは本当に繊細なので、全部アンセーフにしましょう unsafe { // 現在の API では、大きさとアラインメントを手動 ...
https://man.plustar.jp/rust/nomicon/vec-alloc.html - [similar]
Arc と Mutex の実装 6802
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ...
https://man.plustar.jp/rust/nomicon/arc-and-mutex.html - [similar]
ドットオペレータ 6802
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ...
https://man.plustar.jp/rust/nomicon/dot-operator.html - [similar]
借用の分割 6712
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... let ptr = self.as_mut_ptr(); assert!(mid <= len); unsafe { (from_raw_parts_mut(ptr, mid), from_raw_parts_mu ...
https://man.plustar.jp/rust/nomicon/borrow-splitting.html - [similar]
データレイアウト 6712
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ...
https://man.plustar.jp/rust/nomicon/data.html - [similar]
初期化されないメモリ 6712
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ...
https://man.plustar.jp/rust/nomicon/uninitialized.html - [similar]
並行性 6638
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ...
https://man.plustar.jp/rust/nomicon/concurrency.html - [similar]
PREV 1 2 3 4 5 6 NEXT