Closed ejpbruel closed 7 years ago
I suggested AsHandle
and AsHandleMut
because they would help write generic code that could take a reference to any value that could provide a handle, rather than making the callers extract the handles themselves. It seems analogous to the way the std::fs
functions accept any argument that implements AsRef<Path>
.
:umbrella: The latest upstream changes (presumably #328) made this pull request unmergeable. Please resolve the merge conflicts.
Closing due to lack of activity.
Several types in rust-mozjs, such as Heap, PersistentRooted, and RootedGuard, represent a rooted value. A common property of rooted values is that a handle can be obtained to it. Rather than implement this property separately for each of these types, we should abstract it out into these two traits.
This change is