pub struct HostFunction {
pub func: HostFunc,
pub name: &'static str,
pub arity: u32,
pub needs_this: bool,
pub is_constructor: bool,
}Fields§
§func: HostFunc§name: &'static str§arity: u32§needs_this: bool§is_constructor: boolImplementations§
Source§impl HostFunction
impl HostFunction
Trait Implementations§
Source§impl Clone for HostFunction
impl Clone for HostFunction
Source§fn clone(&self) -> HostFunction
fn clone(&self) -> HostFunction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostFunction
Auto Trait Implementations§
impl Freeze for HostFunction
impl RefUnwindSafe for HostFunction
impl Send for HostFunction
impl Sync for HostFunction
impl Unpin for HostFunction
impl UnsafeUnpin for HostFunction
impl UnwindSafe for HostFunction
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