Struct napi::bindgen_prelude::Unknown
source · [−]pub struct Unknown(_);
Implementations
sourceimpl JsUnknown
impl JsUnknown
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 JsUnknown
impl<'env> NapiRaw for &'env JsUnknown
sourceunsafe fn raw(&self) -> napi_value
unsafe fn raw(&self) -> napi_value
get raw js value ptr
sourceimpl NapiValue for JsUnknown
impl NapiValue for JsUnknown
unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<Self>
unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self
sourceimpl TryFrom<JsUnknown> for JsArrayBuffer
impl TryFrom<JsUnknown> for JsArrayBuffer
sourceimpl TryFrom<JsUnknown> for JsDataView
impl TryFrom<JsUnknown> for JsDataView
sourceimpl TryFrom<JsUnknown> for JsExternal
impl TryFrom<JsUnknown> for JsExternal
sourceimpl TryFrom<JsUnknown> for JsFunction
impl TryFrom<JsUnknown> for JsFunction
sourceimpl TryFrom<JsUnknown> for JsTypedArray
impl TryFrom<JsUnknown> for JsTypedArray
sourceimpl TryFrom<JsUnknown> for JsUndefined
impl TryFrom<JsUnknown> for JsUndefined
sourceimpl ValidateNapiValue for JsUnknown
impl ValidateNapiValue for JsUnknown
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 JsUnknown
impl !Send for JsUnknown
impl !Sync for JsUnknown
impl Unpin for JsUnknown
impl UnwindSafe for JsUnknown
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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