Struct napi_h::bindgen_prelude::JsSyntaxError
source · pub struct JsSyntaxError<S: AsRef<str> = Status>(/* private fields */);
Implementations§
source§impl<S: AsRef<str>> JsSyntaxError<S>
impl<S: AsRef<str>> JsSyntaxError<S>
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.
Trait Implementations§
source§impl ToNapiValue for JsSyntaxError
impl ToNapiValue for JsSyntaxError
source§unsafe 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<S> Freeze for JsSyntaxError<S>where
S: Freeze,
impl<S> RefUnwindSafe for JsSyntaxError<S>where
S: RefUnwindSafe,
impl<S> Send for JsSyntaxError<S>where
S: Send,
impl<S> Sync for JsSyntaxError<S>where
S: Sync,
impl<S> Unpin for JsSyntaxError<S>where
S: Unpin,
impl<S> UnwindSafe for JsSyntaxError<S>where
S: UnwindSafe,
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