pub struct HostClass {
pub name: &'static str,
pub constructor: HostFn,
pub methods: &'static [(&'static str, HostFn)],
pub static_methods: &'static [(&'static str, HostFn)],
}
Expand description
A description of a JavaScript prototype+constructor with host methods.
Fields
name: &'static str
constructor: HostFn
methods: &'static [(&'static str, HostFn)]
static_methods: &'static [(&'static str, HostFn)]
Auto Trait Implementations
impl RefUnwindSafe for HostClass
impl Send for HostClass
impl Sync for HostClass
impl Unpin for HostClass
impl UnwindSafe for HostClass
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more