#[repr(transparent)]
pub struct JsNull(_);
Expand description
The type of JavaScript
null
primitives.
cx.global()
.get::<JsObject, _, _>(&mut cx, "console")?
.call_method_with(&mut cx, "log")?
.arg(cx.null())
.exec(&mut cx)?;
Creates a null
value.
Although this method can be called many times, all null
values are indistinguishable.
See also: Context::null
Formats the value using the given formatter.
Read more
Available on crate feature sys
only.
Get a raw reference to the wrapped Node-API value.
Available on crate feature sys
only.
Creates a value from a raw Node-API value.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.