pub struct PinInitMode;Expand description
固定地址初始化的模式标记;初始化器必须在目标的最终地址构造值。 Marker for pinned initialization; the initializer must construct the value at its final address.
Trait Implementations§
Source§impl<const VALUE: bool> Init<bool, !, PinInitMode> for InitTyBool<VALUE>
impl<const VALUE: bool> Init<bool, !, PinInitMode> for InitTyBool<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, bool, PinInitMode>,
) -> Result<InitReceipt<'slot, bool, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, bool, PinInitMode>, ) -> Result<InitReceipt<'slot, bool, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: char> Init<char, !, PinInitMode> for InitTyChar<VALUE>
impl<const VALUE: char> Init<char, !, PinInitMode> for InitTyChar<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, char, PinInitMode>,
) -> Result<InitReceipt<'slot, char, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, char, PinInitMode>, ) -> Result<InitReceipt<'slot, char, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: i8> Init<i8, !, PinInitMode> for InitTyI8<VALUE>
impl<const VALUE: i8> Init<i8, !, PinInitMode> for InitTyI8<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, i8, PinInitMode>,
) -> Result<InitReceipt<'slot, i8, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, i8, PinInitMode>, ) -> Result<InitReceipt<'slot, i8, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: i16> Init<i16, !, PinInitMode> for InitTyI16<VALUE>
impl<const VALUE: i16> Init<i16, !, PinInitMode> for InitTyI16<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, i16, PinInitMode>,
) -> Result<InitReceipt<'slot, i16, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, i16, PinInitMode>, ) -> Result<InitReceipt<'slot, i16, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: i32> Init<i32, !, PinInitMode> for InitTyI32<VALUE>
impl<const VALUE: i32> Init<i32, !, PinInitMode> for InitTyI32<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, i32, PinInitMode>,
) -> Result<InitReceipt<'slot, i32, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, i32, PinInitMode>, ) -> Result<InitReceipt<'slot, i32, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: i64> Init<i64, !, PinInitMode> for InitTyI64<VALUE>
impl<const VALUE: i64> Init<i64, !, PinInitMode> for InitTyI64<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, i64, PinInitMode>,
) -> Result<InitReceipt<'slot, i64, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, i64, PinInitMode>, ) -> Result<InitReceipt<'slot, i64, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: i128> Init<i128, !, PinInitMode> for InitTyI128<VALUE>
impl<const VALUE: i128> Init<i128, !, PinInitMode> for InitTyI128<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, i128, PinInitMode>,
) -> Result<InitReceipt<'slot, i128, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, i128, PinInitMode>, ) -> Result<InitReceipt<'slot, i128, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: isize> Init<isize, !, PinInitMode> for InitTyIsize<VALUE>
impl<const VALUE: isize> Init<isize, !, PinInitMode> for InitTyIsize<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, isize, PinInitMode>,
) -> Result<InitReceipt<'slot, isize, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, isize, PinInitMode>, ) -> Result<InitReceipt<'slot, isize, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: u8> Init<u8, !, PinInitMode> for InitTyU8<VALUE>
impl<const VALUE: u8> Init<u8, !, PinInitMode> for InitTyU8<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, u8, PinInitMode>,
) -> Result<InitReceipt<'slot, u8, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, u8, PinInitMode>, ) -> Result<InitReceipt<'slot, u8, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: u16> Init<u16, !, PinInitMode> for InitTyU16<VALUE>
impl<const VALUE: u16> Init<u16, !, PinInitMode> for InitTyU16<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, u16, PinInitMode>,
) -> Result<InitReceipt<'slot, u16, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, u16, PinInitMode>, ) -> Result<InitReceipt<'slot, u16, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: u32> Init<u32, !, PinInitMode> for InitTyU32<VALUE>
impl<const VALUE: u32> Init<u32, !, PinInitMode> for InitTyU32<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, u32, PinInitMode>,
) -> Result<InitReceipt<'slot, u32, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, u32, PinInitMode>, ) -> Result<InitReceipt<'slot, u32, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: u64> Init<u64, !, PinInitMode> for InitTyU64<VALUE>
impl<const VALUE: u64> Init<u64, !, PinInitMode> for InitTyU64<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, u64, PinInitMode>,
) -> Result<InitReceipt<'slot, u64, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, u64, PinInitMode>, ) -> Result<InitReceipt<'slot, u64, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: u128> Init<u128, !, PinInitMode> for InitTyU128<VALUE>
impl<const VALUE: u128> Init<u128, !, PinInitMode> for InitTyU128<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, u128, PinInitMode>,
) -> Result<InitReceipt<'slot, u128, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, u128, PinInitMode>, ) -> Result<InitReceipt<'slot, u128, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Source§impl<const VALUE: usize> Init<usize, !, PinInitMode> for InitTyUsize<VALUE>
impl<const VALUE: usize> Init<usize, !, PinInitMode> for InitTyUsize<VALUE>
Source§fn initialize<'slot>(
self,
slot: InitSlot<'slot, usize, PinInitMode>,
) -> Result<InitReceipt<'slot, usize, PinInitMode>, Infallible>
fn initialize<'slot>( self, slot: InitSlot<'slot, usize, PinInitMode>, ) -> Result<InitReceipt<'slot, usize, PinInitMode>, Infallible>
消耗目标槽位并返回已初始化值的析构凭证。
Consume the target slot and return a destruction receipt for the initialized value.
Auto Trait Implementations§
impl Freeze for PinInitMode
impl RefUnwindSafe for PinInitMode
impl Send for PinInitMode
impl Sync for PinInitMode
impl Unpin for PinInitMode
impl UnsafeUnpin for PinInitMode
impl UnwindSafe for PinInitMode
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