Struct AnyFnMut

Source
pub struct AnyFnMut<F>(pub Box<F>)
where
    F: ?Sized + DynFnMut;

Tuple Fields§

§0: Box<F>

Implementations§

Source§

impl<F: ?Sized + DynFnMut> AnyFnMut<F>

Source

pub fn inner(&self) -> &Box<F>

Source

pub fn into_inner(self) -> Box<F>

Source

pub fn new<TFunc: 'static + ?Sized + FnMutOfArgs<F::ArgsTuple, DynFnMut = F>, BF: IntoBoxed<TFunc>>( func: BF, ) -> Self

Trait Implementations§

Source§

impl<F: ?Sized + DynFnMut> AsRef<Box<F>> for AnyFnMut<F>

Source§

fn as_ref(&self) -> &Box<F>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<F: ?Sized + DynFnMut> Debug for AnyFnMut<F>

Source§

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

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

impl<F: ?Sized + DynFnMut> Deref for AnyFnMut<F>

Source§

type Target = Box<F>

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl<TFunc: 'static + FnMut() -> TReturn, TReturn> IntoPropValue<AnyFnMut<dyn FnMut() -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut() -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A) -> TReturn, TReturn, A> IntoPropValue<AnyFnMut<dyn FnMut(A) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B) -> TReturn, TReturn, A, B> IntoPropValue<AnyFnMut<dyn FnMut(A, B) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C) -> TReturn, TReturn, A, B, C> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B, C) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C, D) -> TReturn, TReturn, A, B, C, D> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C, D) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B, C, D) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C, D, E) -> TReturn, TReturn, A, B, C, D, E> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C, D, E) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B, C, D, E) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C, D, E, F) -> TReturn, TReturn, A, B, C, D, E, F> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C, D, E, F) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B, C, D, E, F) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C, D, E, F, G) -> TReturn, TReturn, A, B, C, D, E, F, G> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C, D, E, F, G) -> TReturn>> for TFunc

Source§

fn into_prop_value(self) -> AnyFnMut<dyn FnMut(A, B, C, D, E, F, G) -> TReturn>

Source§

impl<TFunc: 'static + FnMut(A, B, C, D, E, F, G, H) -> TReturn, TReturn, A, B, C, D, E, F, G, H> IntoPropValue<AnyFnMut<dyn FnMut(A, B, C, D, E, F, G, H) -> TReturn>> for TFunc

Source§

fn into_prop_value( self, ) -> AnyFnMut<dyn FnMut(A, B, C, D, E, F, G, H) -> TReturn>

Source§

impl<F> SafeIntoJsRuntime for AnyFnMut<F>
where F: 'static + WasmClosure + ?Sized + DynFnMut,

Auto Trait Implementations§

§

impl<F> Freeze for AnyFnMut<F>
where F: ?Sized,

§

impl<F> RefUnwindSafe for AnyFnMut<F>
where F: RefUnwindSafe + ?Sized,

§

impl<F> Send for AnyFnMut<F>
where F: Send + ?Sized,

§

impl<F> Sync for AnyFnMut<F>
where F: Sync + ?Sized,

§

impl<F> Unpin for AnyFnMut<F>
where F: ?Sized,

§

impl<F> UnwindSafe for AnyFnMut<F>
where F: UnwindSafe + ?Sized,

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> IntoBoxed<T> for T

Source§

fn into_boxed(self) -> Box<T>

Source§

impl<T> IntoOptionalRc<T> for T

Source§

impl<R> IntoPropValue<Option<R>> for R

Source§

impl<R> IntoPropValue<R> for R

Source§

impl<T> IntoRc<T> for T

Source§

fn into_rc(self) -> Rc<T>

Source§

impl<T> IntoRefValue<Box<T>> for T

Source§

impl<T> IntoRefValue<Rc<T>> for T

Source§

fn into_ref_value(self) -> Rc<T>

Source§

impl<T> IntoRefValue<T> for T

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.