Struct napi_sys::napi_property_descriptor [−][src]
#[repr(C)]pub struct napi_property_descriptor { pub utf8name: *const c_char, pub name: napi_value, pub method: napi_callback, pub getter: napi_callback, pub setter: napi_callback, pub value: napi_value, pub attributes: napi_property_attributes, pub data: *mut c_void, }
Fields
utf8name: *const c_charname: napi_valuemethod: napi_callbackgetter: napi_callbacksetter: napi_callbackvalue: napi_valueattributes: napi_property_attributesdata: *mut c_voidTrait Implementations
impl Clone for napi_property_descriptor[src]
impl Clone for napi_property_descriptor[src]fn clone(&self) -> napi_property_descriptor[src]
fn clone(&self) -> napi_property_descriptor[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Copy for napi_property_descriptor[src]
Auto Trait Implementations
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
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more