0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-12-25 08:39:15 -05:00

docs: add note how to create a v8::Local out of v8::Global (#1113)

This commit is contained in:
Bartek Iwańczuk 2022-11-02 22:09:07 +01:00 committed by GitHub
parent 7091248630
commit b8d7925774
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -151,6 +151,9 @@ impl<'s, T> Deref for Local<'s, T> {
/// A global handle contains a reference to a storage cell within
/// the V8 engine which holds an object value and which is updated by
/// the garbage collector whenever the object is moved.
///
/// You can create a `v8::Local` out of `v8::Global` using
/// `v8::Local::new(scope, global_handle)`.
#[derive(Debug)]
pub struct Global<T> {
data: NonNull<T>,