pub struct Value<'a> { /* private fields */ }
Implementations
sourceimpl<'a> Value<'a>
impl<'a> Value<'a>
pub fn from_raw(env: Env<'a>, value: napi_value) -> Value<'a>
pub fn env(&self) -> Env<'a>
pub fn raw(&self) -> napi_value
pub fn is_array(&self) -> Result<bool>
pub fn as_array(&self) -> Result<Array<'a>>
pub fn is_arraybuffer(&self) -> Result<bool>
pub fn as_arraybuffer(&self) -> Result<ArrayBuffer<'a>>
pub fn is_bigint(&self) -> Result<bool>
pub fn as_bigint(&self) -> Result<BigInt<'a>>
pub fn is_boolean(&self) -> Result<bool>
pub fn as_boolean(&self) -> Result<Boolean<'a>>
pub fn is_buffer(&self) -> Result<bool>
pub fn as_buffer(&self) -> Result<Buffer<'a>>
pub fn is_dataview(&self) -> Result<bool>
pub fn as_dataview(&self) -> Result<DataView<'a>>
pub fn is_date(&self) -> Result<bool>
pub fn as_date(&self) -> Result<Date<'a>>
pub fn is_external(&self) -> Result<bool>
pub fn as_external<T>(&self) -> Result<External<'a, T>>
pub fn is_function(&self) -> Result<bool>
pub fn as_function(&self) -> Result<Function<'a>>
pub fn is_null(&self) -> Result<bool>
pub fn as_null(&self) -> Result<Null<'a>>
pub fn is_number(&self) -> Result<bool>
pub fn as_number(&self) -> Result<Number<'a>>
pub fn is_object(&self) -> Result<bool>
pub fn as_object(&self) -> Result<Object<'a>>
pub fn is_string(&self) -> Result<bool>
pub fn as_string(&self) -> Result<String<'a>>
pub fn is_symbol(&self) -> Result<bool>
pub fn as_symbol(&self) -> Result<Symbol<'a>>
pub fn is_typedarray(&self) -> Result<bool>
pub fn as_typedarray(&self) -> Result<TypedArray<'a>>
pub fn is_undefined(&self) -> Result<bool>
pub fn as_undefined(&self) -> Result<Undefined<'a>>
Trait Implementations
sourceimpl<'a> From<ArrayBuffer<'a>> for Value<'a>
impl<'a> From<ArrayBuffer<'a>> for Value<'a>
sourcefn from(value: ArrayBuffer<'a>) -> Value<'a>
fn from(value: ArrayBuffer<'a>) -> Value<'a>
Performs the conversion.
sourceimpl<'a> From<TypedArray<'a>> for Value<'a>
impl<'a> From<TypedArray<'a>> for Value<'a>
sourcefn from(value: TypedArray<'a>) -> Value<'a>
fn from(value: TypedArray<'a>) -> Value<'a>
Performs the conversion.
sourceimpl<'a> FromNodeAPI<'a> for Value<'a>
impl<'a> FromNodeAPI<'a> for Value<'a>
fn from_node_api(value: Value<'a>) -> Result<Self>
sourceimpl<'a> IntoNodeApi<'a> for Value<'a>
impl<'a> IntoNodeApi<'a> for Value<'a>
fn into_node_api(self, _env: Env<'a>) -> Result<Value<'a>>
impl<'a> Copy for Value<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Value<'a>
impl<'a> !Send for Value<'a>
impl<'a> !Sync for Value<'a>
impl<'a> Unpin for Value<'a>
impl<'a> UnwindSafe for Value<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more