pub struct RawInit<I> { /* private fields */ }Expand description
将高级原始地址初始化器接入安全初始化入口。
Adapts an advanced raw-pointer initializer to the safe Init interface.
Implementations§
Trait Implementations§
Source§impl<T, E, Mode, I> Init<T, E, Mode> for RawInit<I>where
I: InitRaw<T, E, Mode>,
impl<T, E, Mode, I> Init<T, E, Mode> for RawInit<I>where
I: InitRaw<T, E, Mode>,
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, T, Mode>,
) -> Result<InitReceipt<'slot, T, Mode>, E>
fn initialize<'slot>( self, slot: InitSlot<'slot, T, Mode>, ) -> Result<InitReceipt<'slot, T, Mode>, E>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Auto Trait Implementations§
impl<I> Freeze for RawInit<I>where
I: Freeze,
impl<I> RefUnwindSafe for RawInit<I>where
I: RefUnwindSafe,
impl<I> Send for RawInit<I>where
I: Send,
impl<I> Sync for RawInit<I>where
I: Sync,
impl<I> Unpin for RawInit<I>where
I: Unpin,
impl<I> UnsafeUnpin for RawInit<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for RawInit<I>where
I: 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