Struct hooks_core::fn_hook::FnHook

source ·
pub struct FnHook<InnerHook: Default, U, I: Initialized> {
    pub inner_hook: InnerHook,
    pub use_hook: U,
    pub initialized: I,
}

Fields§

§inner_hook: InnerHook§use_hook: U§initialized: I

Trait Implementations§

source§

impl<InnerHook: Default + Default, U: Default, I: Default + Initialized> Default for FnHook<InnerHook, U, I>

source§

fn default() -> FnHook<InnerHook, U, I>

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

impl<InnerHook: Default + HookPollNextUpdate + HookUnmount, U: for<'hook> FnMutOneArg<Pin<&'hook mut InnerHook>>, I: Initialized> Hook for FnHook<InnerHook, U, I>

source§

impl<InnerHook, U, I: Initialized> HookPollNextUpdate for FnHook<InnerHook, U, I>where InnerHook: Default + HookPollNextUpdate + HookUnmount, U: for<'hook> FnMutOneArg<Pin<&'hook mut InnerHook>>,

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<InnerHook, U, I: Initialized> HookUnmount for FnHook<InnerHook, U, I>where InnerHook: Default + HookPollNextUpdate + HookUnmount, U: for<'hook> FnMutOneArg<Pin<&'hook mut InnerHook>>,

source§

impl<'hook, InnerHook: Default + HookPollNextUpdate + HookUnmount, U: FnMutOneArg<Pin<&'hook mut InnerHook>>, I: Initialized> HookValue<'hook, &'hook FnHook<InnerHook, U, I>> for FnHook<InnerHook, U, I>

source§

impl<'__pin, InnerHook: Default, U, I: Initialized> Unpin for FnHook<InnerHook, U, I>where __Origin<'__pin, InnerHook, U, I>: Unpin,

Auto Trait Implementations§

§

impl<InnerHook, U, I> RefUnwindSafe for FnHook<InnerHook, U, I>where I: RefUnwindSafe, InnerHook: RefUnwindSafe, U: RefUnwindSafe,

§

impl<InnerHook, U, I> Send for FnHook<InnerHook, U, I>where I: Send, InnerHook: Send, U: Send,

§

impl<InnerHook, U, I> Sync for FnHook<InnerHook, U, I>where I: Sync, InnerHook: Sync, U: Sync,

§

impl<InnerHook, U, I> UnwindSafe for FnHook<InnerHook, U, I>where I: UnwindSafe, InnerHook: UnwindSafe, U: UnwindSafe,

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