pub struct Property { /* private fields */ }
Implementations§
source§impl Property
impl Property
pub fn new(name: &str) -> Self
pub fn method(self, method: napi_callback_raw) -> Self
pub fn getter(self, getter: napi_callback_raw) -> Self
pub fn setter(self, setter: napi_callback_raw) -> Self
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