Struct HkFn

Source
pub struct HkFn<F>(/* private fields */);

Trait Implementations§

Source§

impl<A1: ?Sized, A2: ?Sized, A3, Out> Callable<(&mut A1, &A2, A3)> for HkFn<fn(&mut A1, &A2, A3) -> Out>

Source§

type Output = Out

Source§

fn call_fn(&self, (A1, A2, A3): (&mut A1, &A2, A3)) -> Self::Output

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> Callable<(&mut A1, &A2, A3, &A4)> for HkFn<fn(&mut A1, &A2, A3, &A4) -> Out>

Source§

type Output = Out

Source§

fn call_fn(&self, (A1, A2, A3, A4): (&mut A1, &A2, A3, &A4)) -> Self::Output

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> Callable<(&mut A1, &A2, A3, &mut A4)> for HkFn<fn(&mut A1, &A2, A3, &mut A4) -> Out>

Source§

type Output = Out

Source§

fn call_fn(&self, (A1, A2, A3, A4): (&mut A1, &A2, A3, &mut A4)) -> Self::Output

Source§

impl<A1: ?Sized, A2: ?Sized, A3, Out> CallableWithFixedArguments for HkFn<fn(&mut A1, &A2, A3) -> Out>

Source§

type FixedArgumentTypes = (ByMut<A1>, ByRef<A2>, Value<A3>)

Source§

fn call_with_prepended_args<'first: 'out, 'args: 'out, 'out>( &self, first: ArgumentOfType<'first, <Self::FixedArgumentTypes as ArgumentTypes>::First>, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::FirstTrimmed>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

fn call_with_appended_args<'last: 'out, 'args: 'out, 'out>( &self, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::LastTrimmed>, last: ArgumentOfType<'last, <Self::FixedArgumentTypes as ArgumentTypes>::Last>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> CallableWithFixedArguments for HkFn<fn(&mut A1, &A2, A3, &A4) -> Out>

Source§

type FixedArgumentTypes = (ByMut<A1>, ByRef<A2>, Value<A3>, ByRef<A4>)

Source§

fn call_with_prepended_args<'first: 'out, 'args: 'out, 'out>( &self, first: ArgumentOfType<'first, <Self::FixedArgumentTypes as ArgumentTypes>::First>, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::FirstTrimmed>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

fn call_with_appended_args<'last: 'out, 'args: 'out, 'out>( &self, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::LastTrimmed>, last: ArgumentOfType<'last, <Self::FixedArgumentTypes as ArgumentTypes>::Last>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> CallableWithFixedArguments for HkFn<fn(&mut A1, &A2, A3, &mut A4) -> Out>

Source§

type FixedArgumentTypes = (ByMut<A1>, ByRef<A2>, Value<A3>, ByMut<A4>)

Source§

fn call_with_prepended_args<'first: 'out, 'args: 'out, 'out>( &self, first: ArgumentOfType<'first, <Self::FixedArgumentTypes as ArgumentTypes>::First>, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::FirstTrimmed>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

fn call_with_appended_args<'last: 'out, 'args: 'out, 'out>( &self, args: ArgumentsOfTypes<'args, <Self::FixedArgumentTypes as ArgumentTypes>::LastTrimmed>, last: ArgumentOfType<'last, <Self::FixedArgumentTypes as ArgumentTypes>::Last>, ) -> <Self as Callable<ArgumentsOfTypes<'out, Self::FixedArgumentTypes>>>::Output

Source§

impl<F: Clone> Clone for HkFn<F>

Source§

fn clone(&self) -> HkFn<F>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<F: Debug> Debug for HkFn<F>

Source§

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

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

impl<A1: ?Sized, A2: ?Sized, A3, Out> IsCallable for HkFn<fn(&mut A1, &A2, A3) -> Out>

Source§

fn provide_last_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::Last>>( self, last_argument: A, ) -> LastArgumentProvided<Self, A>

Source§

fn provide_first_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::First>>( self, first_argument: A, ) -> FirstArgumentProvided<Self, A>

Source§

fn provide_last_argument_refed<T>( self, last_argument: T, ) -> LastArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_refed<T>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_copied<T: Copy>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_copied<T: Copy>( self, last_argument: T, ) -> LastArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_cloned<T: Clone>( self, last_argument: T, ) -> LastArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_cloned<T: Clone>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> FirstArgumentProvided<Self, With<F>>

Source§

fn provide_last_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> LastArgumentProvided<Self, With<F>>

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> IsCallable for HkFn<fn(&mut A1, &A2, A3, &A4) -> Out>

Source§

fn provide_last_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::Last>>( self, last_argument: A, ) -> LastArgumentProvided<Self, A>

Source§

fn provide_first_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::First>>( self, first_argument: A, ) -> FirstArgumentProvided<Self, A>

Source§

fn provide_last_argument_refed<T>( self, last_argument: T, ) -> LastArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_refed<T>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_copied<T: Copy>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_copied<T: Copy>( self, last_argument: T, ) -> LastArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_cloned<T: Clone>( self, last_argument: T, ) -> LastArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_cloned<T: Clone>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> FirstArgumentProvided<Self, With<F>>

Source§

fn provide_last_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> LastArgumentProvided<Self, With<F>>

Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> IsCallable for HkFn<fn(&mut A1, &A2, A3, &mut A4) -> Out>

Source§

fn provide_last_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::Last>>( self, last_argument: A, ) -> LastArgumentProvided<Self, A>

Source§

fn provide_first_argument<A: ProvideArgument<ProvideArgumentType = <Self::FixedArgumentTypes as ArgumentTypes>::First>>( self, first_argument: A, ) -> FirstArgumentProvided<Self, A>

Source§

fn provide_last_argument_refed<T>( self, last_argument: T, ) -> LastArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_refed<T>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Refed<T>>

Source§

fn provide_first_argument_copied<T: Copy>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_copied<T: Copy>( self, last_argument: T, ) -> LastArgumentProvided<Self, Copied<T>>

Source§

fn provide_last_argument_cloned<T: Clone>( self, last_argument: T, ) -> LastArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_cloned<T: Clone>( self, first_argument: T, ) -> FirstArgumentProvided<Self, Cloned<T>>

Source§

fn provide_first_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> FirstArgumentProvided<Self, With<F>>

Source§

fn provide_last_argument_with<F: Callable<()>>( self, get_first_argument: F, ) -> LastArgumentProvided<Self, With<F>>

Source§

impl<A1: ?Sized, A2: ?Sized, A3, Out> PartialEq for HkFn<fn(&mut A1, &A2, A3) -> Out>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> PartialEq for HkFn<fn(&mut A1, &A2, A3, &A4) -> Out>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<A1: ?Sized, A2: ?Sized, A3, A4: ?Sized, Out> PartialEq for HkFn<fn(&mut A1, &A2, A3, &mut A4) -> Out>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<F: Copy> Copy for HkFn<F>

Auto Trait Implementations§

§

impl<F> Freeze for HkFn<F>
where F: Freeze,

§

impl<F> RefUnwindSafe for HkFn<F>
where F: RefUnwindSafe,

§

impl<F> Send for HkFn<F>
where F: Send,

§

impl<F> Sync for HkFn<F>
where F: Sync,

§

impl<F> Unpin for HkFn<F>
where F: Unpin,

§

impl<F> UnwindSafe for HkFn<F>
where F: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 = Infallible

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

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

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.