Struct napi::JsExternal
source · pub struct JsExternal(_);
Implementations
sourceimpl JsExternal
impl JsExternal
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
sourceimpl<'env> NapiRaw for &'env JsExternal
impl<'env> NapiRaw for &'env JsExternal
unsafe fn raw(&self) -> napi_value
sourceimpl NapiRaw for JsExternal
impl NapiRaw for JsExternal
unsafe fn raw(&self) -> napi_value
sourceimpl NapiValue for JsExternal
impl NapiValue for JsExternal
unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<JsExternal>
unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> JsExternal
sourceimpl TryFrom<JsUnknown> for JsExternal
impl TryFrom<JsUnknown> for JsExternal
sourceimpl TypeName for JsExternal
impl TypeName for JsExternal
sourceimpl ValidateNapiValue for JsExternal
impl ValidateNapiValue for JsExternal
sourceunsafe 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
Auto Trait Implementations
impl RefUnwindSafe for JsExternal
impl !Send for JsExternal
impl !Sync for JsExternal
impl Unpin for JsExternal
impl UnwindSafe for JsExternal
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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