pub struct StateUninitialized<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT, const EQ: bool = false> {
    pub current_state: Option<T>,
    pub state_updater: StateUpdater<'a, T, N>,
}

Fields§

§current_state: Option<T>§state_updater: StateUpdater<'a, T, N>

Trait Implementations§

source§

impl<'a, T: Debug, const N: usize, const EQ: bool> Debug for StateUninitialized<'a, T, N, EQ>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, T, const N: usize, const EQ: bool> Default for StateUninitialized<'a, T, N, EQ>

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'a, T: PollNextUpdateFromStateUpdater<EQ>, const N: usize, const EQ: bool> HookPollNextUpdate for StateUninitialized<'a, T, N, EQ>

source§

fn poll_next_update(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<bool>

The meaning of the return value is: Read more
source§

impl<'a, T: PollNextUpdateFromStateUpdater<EQ>, const N: usize, const EQ: bool> HookUnmount for StateUninitialized<'a, T, N, EQ>

source§

impl<'a, T, const N: usize, const EQ: bool> Unpin for StateUninitialized<'a, T, N, EQ>

Auto Trait Implementations§

§

impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT, const EQ: bool = false> !RefUnwindSafe for StateUninitialized<'a, T, N, EQ>

§

impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT, const EQ: bool = false> !Send for StateUninitialized<'a, T, N, EQ>

§

impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT, const EQ: bool = false> !Sync for StateUninitialized<'a, T, N, EQ>

§

impl<'a, T, const N: usize = STAGING_STATES_DEFAULT_STACK_COUNT, const EQ: bool = false> !UnwindSafe for StateUninitialized<'a, T, N, EQ>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<H> HookPollNextUpdateExt for Hwhere H: HookPollNextUpdate + ?Sized,

source§

fn poll_next_update(&mut self, cx: &mut Context<'_>) -> Poll<bool>where Self: Unpin,

A shortcut to call HookPollNextUpdate::poll_next_update on Unpin hooks.
source§

fn next_update(&mut self) -> NextUpdate<'_, Self>where Self: Unpin,

Get a future which polls HookPollNextUpdate::poll_next_update.
source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.