Struct napi::bindgen_prelude::Property
source · [−]pub struct Property {
pub name: CString,
/* private fields */
}
Fields
name: CString
Implementations
sourceimpl 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_setter(self, callback: Callback) -> 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 RefUnwindSafe for Property
impl !Send for Property
impl !Sync for Property
impl Unpin for Property
impl UnwindSafe for Property
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more