RootedGuard<'_, T> requires that T implement mozjs_sys::jsgc::RootKind.
This issues involves exporting mozjs_sys::jsgc::* in mozjs.
Reason
Currently, I am unable to create a generic function that does this as this struct is not exported by mozjs. This will be useful for creating utility functions to set a value without requiring you to manually convert it using ToJSValConvertible.
Implementation Code
// src/lib.rs
pub use mozjs_sys::jsgc;