pub struct JsUndefined(/* private fields */);
๐Deprecated since 3.0.0: use
()
insteadImplementationsยง
Sourceยงimpl JsUndefined
impl JsUndefined
pub fn into_unknown<'env>(self) -> Unknown<'env>
pub fn coerce_to_bool(self) -> Result<JsBoolean>
pub fn coerce_to_number<'env>(self) -> Result<JsNumber<'env>>
pub fn coerce_to_string<'env>(self) -> Result<JsString<'env>>
pub fn coerce_to_object(self) -> Result<JsObject>
pub fn is_date(&self) -> Result<bool>
pub fn is_promise(&self) -> Result<bool>
pub fn is_error(&self) -> Result<bool>
pub fn is_typedarray(&self) -> Result<bool>
pub fn is_dataview(&self) -> Result<bool>
pub fn is_array(&self) -> Result<bool>
pub fn is_buffer(&self) -> Result<bool>
pub fn is_arraybuffer(&self) -> Result<bool>
pub fn instanceof<Constructor>(&self, constructor: Constructor) -> Result<bool>where
Constructor: NapiRaw,
Trait Implementationsยง
Sourceยงimpl Clone for JsUndefined
impl Clone for JsUndefined
Sourceยงfn clone(&self) -> JsUndefined
fn clone(&self) -> JsUndefined
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSourceยงimpl FromNapiValue for JsUndefined
impl FromNapiValue for JsUndefined
Sourceยงunsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: Unknown<'_>) -> Result<Self>
Sourceยงimpl JsValue<'_> for JsUndefined
impl JsValue<'_> for JsUndefined
fn value(&self) -> Value
fn raw(&self) -> napi_value
Sourceยงfn to_unknown(&self) -> Unknown<'env>
fn to_unknown(&self) -> Unknown<'env>
Convert the value to an unknown
Sourceยงfn coerce_to_bool(&self) -> Result<bool>
fn coerce_to_bool(&self) -> Result<bool>
Coerce the value to a boolean
fn coerce_to_number(&self) -> Result<JsNumber<'_>>
fn coerce_to_string(&self) -> Result<JsString<'_>>
fn coerce_to_object(&self) -> Result<Object<'env>>
fn is_date(&self) -> Result<bool>
fn is_promise(&self) -> Result<bool>
fn is_error(&self) -> Result<bool>
fn is_typedarray(&self) -> Result<bool>
fn is_dataview(&self) -> Result<bool>
fn is_array(&self) -> Result<bool>
fn is_buffer(&self) -> Result<bool>
fn is_arraybuffer(&self) -> Result<bool>
fn instanceof<'c, Constructor>(&self, constructor: Constructor) -> Result<bool>where
Constructor: JsValue<'c>,
fn escape<'scope, E: JsValue<'scope> + FromNapiValue>( &self, escapable_handle_scope: EscapableHandleScope<'scope>, ) -> Result<E>
Sourceยงimpl<'env> NapiRaw for &'env JsUndefined
impl<'env> NapiRaw for &'env JsUndefined
unsafe fn raw(&self) -> napi_value
Sourceยงimpl NapiRaw for JsUndefined
impl NapiRaw for JsUndefined
unsafe fn raw(&self) -> napi_value
Sourceยงimpl NapiValue for JsUndefined
impl NapiValue for JsUndefined
unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<JsUndefined>
unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> JsUndefined
Sourceยงimpl TryFrom<Unknown<'_>> for JsUndefined
impl TryFrom<Unknown<'_>> for JsUndefined
Sourceยงimpl TypeName for JsUndefined
impl TypeName for JsUndefined
Sourceยงimpl ValidateNapiValue for JsUndefined
impl ValidateNapiValue for JsUndefined
Sourceยงunsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
unsafe fn validate(env: napi_env, napi_val: napi_value) -> Result<napi_value>
Safety Read more
impl Copy for JsUndefined
Auto Trait Implementationsยง
impl Freeze for JsUndefined
impl RefUnwindSafe for JsUndefined
impl !Send for JsUndefined
impl !Sync for JsUndefined
impl Unpin for JsUndefined
impl UnwindSafe for JsUndefined
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<'env, T> JsValuesTuple for Twhere
T: JsValue<'env>,
impl<'env, T> JsValuesTuple for Twhere
T: JsValue<'env>,
fn env(&self) -> *mut napi_env__
Sourceยงimpl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
impl<T> JsValuesTupleIntoVec for Twhere
T: ToNapiValue,
fn into_vec(self, env: *mut napi_env__) -> Result<Vec<*mut napi_value__>, Error>
Sourceยงimpl<'env, T> ToNapiValue for Twhere
T: JsValue<'env>,
impl<'env, T> ToNapiValue for Twhere
T: JsValue<'env>,
Sourceยงunsafe fn to_napi_value(
_env: *mut napi_env__,
val: T,
) -> Result<*mut napi_value__, Error>
unsafe fn to_napi_value( _env: *mut napi_env__, val: T, ) -> Result<*mut napi_value__, Error>
Safety Read more