pub struct KillOwned<T> {
ptr: NonNull<T>,
slot: Option<(&'static KillDropTable, usize, usize)>,
_own: PhantomData<(T, *const ())>,
}Expand description
止めるときに解放される箱(モジュールの説明を参照)。Deref で中身を使う。
Fields§
§ptr: NonNull<T>§slot: Option<(&'static KillDropTable, usize, usize)>欄(表・行・欄の番号)。アプリのスレッドの外で作ったときは None。
_own: PhantomData<(T, *const ())>中身を持つ印。生のポインタを含めて Send・Sync にしない。
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !Send for KillOwned<T>
impl<T> !Sync for KillOwned<T>
impl<T> Freeze for KillOwned<T>
impl<T> RefUnwindSafe for KillOwned<T>where
T: RefUnwindSafe,
impl<T> Unpin for KillOwned<T>where
T: Unpin,
impl<T> UnsafeUnpin for KillOwned<T>
impl<T> UnwindSafe for KillOwned<T>where
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more