pub struct Property {
pub name: CString,
/* private fields */
}
Fields§
§name: CString
Implementations§
source§impl Property
impl Property
pub fn new(name: &str) -> Result<Self>
pub fn with_name(self, name: &str) -> Self
pub fn with_method(self, callback: Callback) -> Self
pub fn with_getter(self, callback: Callback) -> Self
pub fn with_getter_closure<R, F>(self, callback: F) -> Self
pub fn with_setter(self, callback: Callback) -> Self
pub fn with_setter_closure<F, V>(self, callback: F) -> Self
pub fn with_property_attributes(self, attributes: PropertyAttributes) -> Self
pub fn with_value<T: NapiRaw>(self, value: &T) -> Self
pub fn with_ctor(self, callback: Callback) -> Self
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