Struct napi::JsUndefined
source · pub struct JsUndefined(_);
Implementations§
source§impl JsUndefined
impl JsUndefined
pub fn into_unknown(self) -> JsUnknown
pub fn coerce_to_bool(self) -> Result<JsBoolean>
pub fn coerce_to_number(self) -> Result<JsNumber>
pub fn coerce_to_string(self) -> Result<JsString>
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 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 copy 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<'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<JsUnknown> for JsUndefined
impl TryFrom<JsUnknown> 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