Struct napi::bindgen_prelude::Reference
source · [−]pub struct Reference<T> { /* private fields */ }
Expand description
Experimental feature
Create a reference
from Class
instance.
Unref the Reference
when the Reference
is dropped.
Implementations
Trait Implementations
impl<T: Send> Send for Reference<T>
impl<T: Sync> Sync for Reference<T>
Auto Trait Implementations
impl<T> !RefUnwindSafe for Reference<T>
impl<T> Unpin for Reference<T>
impl<T> !UnwindSafe for Reference<T>
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