pub struct UseFnHook<InnerHook: Default + HookPollNextUpdate + HookUnmount, U: for<'hook> FnMutOneArg<Pin<&'hook mut InnerHook>>>(pub U, pub PhantomData<InnerHook>);

Tuple Fields§

§0: U§1: PhantomData<InnerHook>

Trait Implementations§

source§

impl<InnerHook, U> IntoHook for UseFnHook<InnerHook, U>where InnerHook: Default + HookPollNextUpdate + HookUnmount, for<'hook> U: FnMutOneArg<Pin<&'hook mut InnerHook>>,

§

type Hook = FnHook<InnerHook, U, bool>

source§

fn into_hook(self) -> Self::Hook

source§

fn into_hook_values(self) -> Values<Self::Hook>where Self: Sized,

source§

impl<InnerHook, U> UpdateHook for UseFnHook<InnerHook, U>where InnerHook: Default + HookPollNextUpdate + HookUnmount, for<'hook> U: FnMutOneArg<Pin<&'hook mut InnerHook>>,

source§

fn update_hook(self, hook: Pin<&mut Self::Hook>)

source§

impl<InnerHook, U> UpdateHookUninitialized for UseFnHook<InnerHook, U>where InnerHook: Default + HookPollNextUpdate + HookUnmount, for<'hook> U: FnMutOneArg<Pin<&'hook mut InnerHook>>,

§

type Uninitialized = FnHookUninitialized<InnerHook, U>

source§

fn h( self, hook: Pin<&mut Self::Uninitialized> ) -> <Self::Hook as HookValue<'_>>::Value

Auto Trait Implementations§

§

impl<InnerHook, U> RefUnwindSafe for UseFnHook<InnerHook, U>where InnerHook: RefUnwindSafe, U: RefUnwindSafe,

§

impl<InnerHook, U> Send for UseFnHook<InnerHook, U>where InnerHook: Send, U: Send,

§

impl<InnerHook, U> Sync for UseFnHook<InnerHook, U>where InnerHook: Sync, U: Sync,

§

impl<InnerHook, U> Unpin for UseFnHook<InnerHook, U>where InnerHook: Unpin, U: Unpin,

§

impl<InnerHook, U> UnwindSafe for UseFnHook<InnerHook, U>where 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.