Skip to content
This repository was archived by the owner on Nov 12, 2022. It is now read-only.
This repository was archived by the owner on Nov 12, 2022. It is now read-only.

Exports of mozjs_sys::jsgc::* #546

@redfire75369

Description

@redfire75369

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions