Union v8::ExternalReference
source · pub union ExternalReference<'s> {
pub function: FunctionCallback,
pub named_getter: extern "C" fn(_: Local<'s, Name>, _: *const PropertyCallbackInfo),
pub named_setter: extern "C" fn(_: Local<'s, Name>, _: Local<'s, Value>, _: *const PropertyCallbackInfo),
pub named_definer: extern "C" fn(_: Local<'s, Name>, _: *const PropertyDescriptor, _: *const PropertyCallbackInfo),
pub indexed_getter: extern "C" fn(_: u32, _: *const PropertyCallbackInfo),
pub indexed_setter: extern "C" fn(_: u32, _: Local<'s, Value>, _: *const PropertyCallbackInfo),
pub indexed_definer: extern "C" fn(_: u32, _: *const PropertyDescriptor, _: *const PropertyCallbackInfo),
pub enumerator: extern "C" fn(_: *const PropertyCallbackInfo),
pub message: MessageCallback,
pub pointer: *mut c_void,
}
Fields§
§function: FunctionCallback
§named_getter: extern "C" fn(_: Local<'s, Name>, _: *const PropertyCallbackInfo)
§named_setter: extern "C" fn(_: Local<'s, Name>, _: Local<'s, Value>, _: *const PropertyCallbackInfo)
§named_definer: extern "C" fn(_: Local<'s, Name>, _: *const PropertyDescriptor, _: *const PropertyCallbackInfo)
§indexed_getter: extern "C" fn(_: u32, _: *const PropertyCallbackInfo)
§indexed_setter: extern "C" fn(_: u32, _: Local<'s, Value>, _: *const PropertyCallbackInfo)
§indexed_definer: extern "C" fn(_: u32, _: *const PropertyDescriptor, _: *const PropertyCallbackInfo)
§enumerator: extern "C" fn(_: *const PropertyCallbackInfo)
§message: MessageCallback
§pointer: *mut c_void
Trait Implementations§
source§impl<'s> Clone for ExternalReference<'s>
impl<'s> Clone for ExternalReference<'s>
source§fn clone(&self) -> ExternalReference<'s>
fn clone(&self) -> ExternalReference<'s>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'s> Debug for ExternalReference<'s>
impl<'s> Debug for ExternalReference<'s>
impl<'s> Copy for ExternalReference<'s>
Auto Trait Implementations§
impl<'s> RefUnwindSafe for ExternalReference<'s>
impl<'s> !Send for ExternalReference<'s>
impl<'s> !Sync for ExternalReference<'s>
impl<'s> Unpin for ExternalReference<'s>
impl<'s> UnwindSafe for ExternalReference<'s>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more