pub enum ErrorKind {
Syntax,
Unsupported,
Type,
Runtime,
Limit,
}Expand description
错误分类。
Variants§
Syntax
词法/语法错误。
Unsupported
语法或取值属于契约之外(正则、循环、函数、Date、无法用 str 表达的孤立代理等)。
Type
类型不匹配,如对非数组调用 .includes 之外的情形。
Runtime
运行期异常:复刻 JS 抛错语义,由调用方决定 fail-open / fail-closed。
Limit
超出节点数或嵌套深度上限。
Trait Implementations§
impl Copy for ErrorKind
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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