#[repr(C)]pub struct napi_property_descriptor {
pub utf8name: *const i8,
pub name: *mut napi_value__,
pub method: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>,
pub getter: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>,
pub setter: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>,
pub value: *mut napi_value__,
pub attributes: u32,
pub data: *mut c_void,
}
Fields§
§utf8name: *const i8
§name: *mut napi_value__
§method: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>
§getter: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>
§setter: Option<unsafe extern "C" fn(*mut napi_env__, *mut napi_callback_info__) -> *mut napi_value__>
§value: *mut napi_value__
§attributes: u32
§data: *mut c_void
Trait Implementations§
Source§impl Clone for napi_property_descriptor
impl Clone for napi_property_descriptor
Source§fn clone(&self) -> napi_property_descriptor
fn clone(&self) -> napi_property_descriptor
Returns a duplicate 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 Debug for napi_property_descriptor
impl Debug for napi_property_descriptor
impl Copy for napi_property_descriptor
Auto Trait Implementations§
impl Freeze for napi_property_descriptor
impl RefUnwindSafe for napi_property_descriptor
impl !Send for napi_property_descriptor
impl !Sync for napi_property_descriptor
impl Unpin for napi_property_descriptor
impl UnwindSafe for napi_property_descriptor
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