pub struct FnWithArgs<const N: usize> { /* private fields */ }
Implementations§
Source§impl<const N: usize> FnWithArgs<N>
impl<const N: usize> FnWithArgs<N>
Source§impl FnWithArgs<1>
impl FnWithArgs<1>
pub fn run_rust_fn<A, B, FN: Fn(A) -> B>(self, _func: FN) -> Self
pub fn rust_closure<F: Fn(JsValue) -> JsValue + 'static>( self, closure: F, ) -> Self
Source§impl FnWithArgs<2>
impl FnWithArgs<2>
pub fn run_rust_fn<A, B, C, FN: Fn(A, B) -> C>(self, _func: FN) -> Self
pub fn rust_closure<F: Fn(JsValue, JsValue) -> JsValue + 'static>( self, closure: F, ) -> Self
Source§impl FnWithArgs<3>
impl FnWithArgs<3>
pub fn run_rust_fn<A, B, C, D, FN: Fn(A, B, C) -> D>(self, _func: FN) -> Self
pub fn rust_closure<F: Fn(JsValue, JsValue, JsValue) -> JsValue + 'static>( self, closure: F, ) -> Self
Source§impl FnWithArgs<4>
impl FnWithArgs<4>
Source§impl FnWithArgs<5>
impl FnWithArgs<5>
Source§impl FnWithArgs<6>
impl FnWithArgs<6>
Trait Implementations§
Source§impl<const N: usize> Clone for FnWithArgs<N>
impl<const N: usize> Clone for FnWithArgs<N>
Source§fn clone(&self) -> FnWithArgs<N>
fn clone(&self) -> FnWithArgs<N>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<const N: usize> Debug for FnWithArgs<N>
impl<const N: usize> Debug for FnWithArgs<N>
Source§impl<const N: usize> Default for FnWithArgs<N>
impl<const N: usize> Default for FnWithArgs<N>
Source§impl<'de, const N: usize> Deserialize<'de> for FnWithArgs<N>
impl<'de, const N: usize> Deserialize<'de> for FnWithArgs<N>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> From<FnWithArgs<N>> for FnWithArgsOrAny<N>
impl<const N: usize> From<FnWithArgs<N>> for FnWithArgsOrAny<N>
Source§fn from(value: FnWithArgs<N>) -> Self
fn from(value: FnWithArgs<N>) -> Self
Converts to this type from the input type.
Source§impl<const N: usize> Ord for FnWithArgs<N>
impl<const N: usize> Ord for FnWithArgs<N>
Source§fn cmp(&self, other: &FnWithArgs<N>) -> Ordering
fn cmp(&self, other: &FnWithArgs<N>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const N: usize> PartialEq for FnWithArgs<N>
impl<const N: usize> PartialEq for FnWithArgs<N>
Source§impl<const N: usize> PartialOrd for FnWithArgs<N>
impl<const N: usize> PartialOrd for FnWithArgs<N>
Source§impl<const N: usize> Serialize for FnWithArgs<N>
impl<const N: usize> Serialize for FnWithArgs<N>
impl<const N: usize> Eq for FnWithArgs<N>
impl<const N: usize> StructuralPartialEq for FnWithArgs<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for FnWithArgs<N>
impl<const N: usize> RefUnwindSafe for FnWithArgs<N>
impl<const N: usize> Send for FnWithArgs<N>
impl<const N: usize> Sync for FnWithArgs<N>
impl<const N: usize> Unpin for FnWithArgs<N>
impl<const N: usize> UnwindSafe for FnWithArgs<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more