検索

phrase: max: clip:
target: order:
Results of 21 - 22 of about 22 for self (0.034 sec.)
レイアウト 6127
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... {} impl<T> Unique<T> { pub fn new(ptr: *mut T) -> Self { Unique { ptr: ptr, _marker: PhantomData } } } im ... ef for Unique<T> { type Target = *mut T; fn deref(&self) -> &*mut T { // 参照も受け取っている時に、 *const ... でトランスミュートします。 unsafe { mem::transmute(&self.ptr) } } } fn main() {} 残念ながら、値が非 0 である ... します。 #![feature(unique)] use std::ptr::{Unique, self}; pub struct Vec<T> { ptr: Unique<T>, cap: usize, ...
https://man.plustar.jp/rust/nomicon/vec-layout.html - [similar]
安全と危険の相互作用 5639
はじめに 1. 安全と危険のご紹介 1.1. 安全と危険の相互作用 1.2. Unsafe と連携する 2. データレイアウ ... d::cmp::Ordering; unsafe trait UnsafeOrd { fn cmp(&self, other: &Self) -> Ordering; } } この場合、 UnsafeO ...
https://man.plustar.jp/rust/nomicon/safe-unsafe-meaning.html - [similar]
PREV 1 2 3 NEXT