pub struct StaticFunction { /* private fields */ }Expand description
A version of Function with a static lifetime.
See StaticValue for the difference between this and Function<'static>.
Implementations§
Source§impl StaticFunction
impl StaticFunction
pub fn to_runtime<'host>(&self) -> Function<'host>
Source§impl StaticFunction
impl StaticFunction
pub fn borrow(external: &'static dyn ExternFn) -> StaticFunction
pub fn owned(external: Rc<dyn ExternFnOwned>) -> StaticFunction
Trait Implementations§
Source§impl Clone for StaticFunction
impl Clone for StaticFunction
Source§fn clone(&self) -> StaticFunction
fn clone(&self) -> StaticFunction
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 moreAuto Trait Implementations§
impl Freeze for StaticFunction
impl !RefUnwindSafe for StaticFunction
impl !Send for StaticFunction
impl !Sync for StaticFunction
impl Unpin for StaticFunction
impl !UnwindSafe for StaticFunction
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