Struct napi::bindgen_prelude::JsTypeError
source · pub struct JsTypeError(_);
Implementations
sourceimpl JsTypeError
impl JsTypeError
sourcepub unsafe fn into_value(self, env: napi_env) -> napi_value
pub unsafe fn into_value(self, env: napi_env) -> napi_value
Safety
This function is safety if env is not null ptr.
pub fn into_unknown(self, env: Env) -> JsUnknown
sourcepub unsafe fn throw_into(self, env: napi_env)
pub unsafe fn throw_into(self, env: napi_env)
Safety
This function is safety if env is not null ptr.
pub fn throw(&self, env: napi_env) -> Result<()>
Trait Implementations
sourceimpl From<Error> for JsTypeError
impl From<Error> for JsTypeError
sourceimpl ToNapiValue for JsTypeError
impl ToNapiValue for JsTypeError
sourceunsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: Self) -> Result<napi_value>
Safety Read more
Auto Trait Implementations
impl RefUnwindSafe for JsTypeError
impl Send for JsTypeError
impl Sync for JsTypeError
impl Unpin for JsTypeError
impl UnwindSafe for JsTypeError
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