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 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