Struct muse_lang::runtime::value::RustFunction
source · pub struct RustFunction(/* private fields */);Expand description
A Rust function that can be stored in a Value and called.
Implementations§
Trait Implementations§
source§impl Clone for RustFunction
impl Clone for RustFunction
source§fn clone(&self) -> RustFunction
fn clone(&self) -> RustFunction
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 CustomType for RustFunction
impl CustomType for RustFunction
source§impl Debug for RustFunction
impl Debug for RustFunction
impl ContainsNoRefs for RustFunction
Auto Trait Implementations§
impl Freeze for RustFunction
impl !RefUnwindSafe for RustFunction
impl Send for RustFunction
impl Sync for RustFunction
impl Unpin for RustFunction
impl !UnwindSafe for RustFunction
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
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)