pub struct Func<T, P>(/* private fields */);Expand description
Helper type to implement IntoJsFunc for closure by constraining arguments.
Implementations§
Trait Implementations§
Source§impl<'js, T, P> From<T> for Func<T, P>where
    T: IntoJsFunc<'js, P>,
 
impl<'js, T, P> From<T> for Func<T, P>where
    T: IntoJsFunc<'js, P>,
Auto Trait Implementations§
impl<T, P> Freeze for Func<T, P>where
    T: Freeze,
impl<T, P> RefUnwindSafe for Func<T, P>where
    T: RefUnwindSafe,
    P: RefUnwindSafe,
impl<T, P> Send for Func<T, P>
impl<T, P> Sync for Func<T, P>
impl<T, P> Unpin for Func<T, P>
impl<T, P> UnwindSafe for Func<T, P>where
    T: UnwindSafe,
    P: UnwindSafe,
Blanket Implementations§
Source§impl<'js, T> AsProperty<'js, T> for Twhere
    T: IntoJs<'js>,
 
impl<'js, T> AsProperty<'js, T> for Twhere
    T: IntoJs<'js>,
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
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more