Skip to main content

PinInitMode

Struct PinInitMode 

Source
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>

Source§

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§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more
Source§

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>

消耗目标槽位并返回已初始化值的析构凭证。 Consume the target slot and return a destruction receipt for the initialized value.
Source§

fn map_err<F, E2>(self, map: F) -> MapInitError<Self, F, E, Mode>
where Self: Sized, F: FnOnce(E) -> E2,

将初始化器的错误映射为另一种错误类型,同时保留地址模式。 Map the initializer’s error to another type while preserving its address mode. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.