#[repr(u8)]pub enum NativeErrorKind {
Eval = 0,
Range = 1,
Reference = 2,
Syntax = 3,
Type = 4,
Uri = 5,
Internal = 6,
Aggregate = 7,
}Expand description
QuickJS native Error subclasses, in the same stable order as
JSErrorEnum in the 2026-06-04 baseline.
Variants§
Implementations§
Source§impl NativeErrorKind
impl NativeErrorKind
pub const ALL: [Self; 8]
pub const COUNT: usize
pub const fn index(self) -> usize
pub const fn name(self) -> &'static str
Sourcepub const fn from_javascript_error(kind: ErrorKind) -> Option<Self>
pub const fn from_javascript_error(kind: ErrorKind) -> Option<Self>
Classify an engine-facing error kind which has JavaScript throw
semantics. Unsupported, Internal, and Io are deliberately
excluded: implementation frontiers and engine faults must not become
catchable JavaScript exceptions through this conversion.
Trait Implementations§
Source§impl Clone for NativeErrorKind
impl Clone for NativeErrorKind
impl Copy for NativeErrorKind
Source§impl Debug for NativeErrorKind
impl Debug for NativeErrorKind
impl Eq for NativeErrorKind
Source§impl Hash for NativeErrorKind
impl Hash for NativeErrorKind
Source§impl PartialEq for NativeErrorKind
impl PartialEq for NativeErrorKind
impl StructuralPartialEq for NativeErrorKind
Auto Trait Implementations§
impl Freeze for NativeErrorKind
impl RefUnwindSafe for NativeErrorKind
impl Send for NativeErrorKind
impl Sync for NativeErrorKind
impl Unpin for NativeErrorKind
impl UnsafeUnpin for NativeErrorKind
impl UnwindSafe for NativeErrorKind
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