[][src]Struct nj_core::sys::napi_property_descriptor

#[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 i8name: *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: u32data: *mut c_void

Trait Implementations

impl Clone for napi_property_descriptor[src]

impl Copy for napi_property_descriptor[src]

impl Debug for napi_property_descriptor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.