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 Freeze for Property
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