Struct napi::Property [−][src]
pub struct Property<'env> { pub name: &'env str, // some fields omitted }
Fields
name: &'env str
Implementations
impl<'env> Property<'env>
[src]
impl<'env> Property<'env>
[src]pub fn new(env: &'env Env, name: &'env str) -> Result<Self>
[src]
pub fn with_value<T: NapiValue>(self, value: T) -> Self
[src]
pub fn with_method(self, callback: Callback) -> Self
[src]
pub fn with_getter(self, callback: Callback) -> Self
[src]
pub fn with_setter(self, callback: Callback) -> Self
[src]
pub fn with_property_attributes(self, attributes: PropertyAttributes) -> Self
[src]
Trait Implementations
Auto Trait Implementations
impl<'env> RefUnwindSafe for Property<'env>
impl<'env> !Send for Property<'env>
impl<'env> !Sync for Property<'env>
impl<'env> Unpin for Property<'env>
impl<'env> UnwindSafe for Property<'env>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more