Function mozjs::rust::define_methods
source · pub unsafe fn define_methods(
cx: *mut JSContext,
obj: HandleObject<'_>,
methods: &'static [JSFunctionSpec],
) -> Result<(), ()>
pub unsafe fn define_methods(
cx: *mut JSContext,
obj: HandleObject<'_>,
methods: &'static [JSFunctionSpec],
) -> Result<(), ()>