pub struct RefFunction { /* private fields */ }
Implementations§
Source§impl RefFunction
impl RefFunction
pub fn new<Handler, Input, Output>(handler: Handler) -> RefFunction
pub fn new_raw<Handler>(handler: Handler) -> RefFunction
pub fn as_extern_ref_func(&self) -> ExternRefFunction
Trait Implementations§
Source§impl Clone for RefFunction
impl Clone for RefFunction
Source§fn clone(&self) -> RefFunction
fn clone(&self) -> RefFunction
Returns a duplicate 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<'a> From<RefFunction> for Val<'a>
impl<'a> From<RefFunction> for Val<'a>
Source§fn from(ref_func: RefFunction) -> Self
fn from(ref_func: RefFunction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RefFunction
impl !RefUnwindSafe for RefFunction
impl !Send for RefFunction
impl !Sync for RefFunction
impl Unpin for RefFunction
impl !UnwindSafe for RefFunction
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