Struct node_bindgen::core::Property
source · pub struct Property { /* private fields */ }
Implementations§
source§impl Property
impl Property
pub fn new(name: &str) -> Property
pub fn method( self, method: unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__ ) -> Property
pub fn getter( self, getter: unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__ ) -> Property
pub fn setter( self, setter: unsafe extern "C" fn(_: *mut napi_env__, _: *mut napi_callback_info__) -> *mut napi_value__ ) -> Property
pub fn as_raw_property(&self) -> napi_property_descriptor
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Property
impl Send for Property
impl Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
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