pub enum SimdJsonError {
Show 33 variants
Capacity,
MemAlloc,
TapeError,
DepthError,
StringError,
TAtomError,
FAtomError,
NAtomError,
NumberError,
BigIntError,
Utf8Error,
Uninitialized,
Empty,
UnescapedChars,
UnclosedString,
UnsupportedArchitecture,
IncorrectType,
NumberOutOfRange,
IndexOutOfBounds,
NoSuchField,
IoError,
InvalidJsonPointer,
InvalidUriFragment,
UnexpectedError,
ParserInUse,
OutOfOrderIteration,
InsufficientPadding,
IncompleteArrayOrObject,
ScalarDocumentAsValue,
OutOfBounds,
TrailingContent,
OutOfCapacity,
Unknown {
code: i32,
},
}Expand description
Strongly typed error enum representing C++ simdjson error codes.
Variants§
Capacity
MemAlloc
TapeError
DepthError
StringError
TAtomError
FAtomError
NAtomError
NumberError
BigIntError
Utf8Error
Uninitialized
Empty
UnescapedChars
UnclosedString
UnsupportedArchitecture
IncorrectType
NumberOutOfRange
IndexOutOfBounds
NoSuchField
IoError
InvalidJsonPointer
InvalidUriFragment
UnexpectedError
ParserInUse
OutOfOrderIteration
InsufficientPadding
IncompleteArrayOrObject
ScalarDocumentAsValue
OutOfBounds
TrailingContent
OutOfCapacity
Unknown
Implementations§
Source§impl SimdJsonError
impl SimdJsonError
Trait Implementations§
Source§impl Clone for SimdJsonError
impl Clone for SimdJsonError
Source§fn clone(&self) -> SimdJsonError
fn clone(&self) -> SimdJsonError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimdJsonError
Source§impl Debug for SimdJsonError
impl Debug for SimdJsonError
Source§impl Display for SimdJsonError
impl Display for SimdJsonError
impl Eq for SimdJsonError
Source§impl Error for SimdJsonError
impl Error for SimdJsonError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl ErrorCompat for SimdJsonError
impl ErrorCompat for SimdJsonError
Source§fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_> ⓘwhere
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreSource§impl PartialEq for SimdJsonError
impl PartialEq for SimdJsonError
impl StructuralPartialEq for SimdJsonError
Auto Trait Implementations§
impl Freeze for SimdJsonError
impl RefUnwindSafe for SimdJsonError
impl Send for SimdJsonError
impl Sync for SimdJsonError
impl Unpin for SimdJsonError
impl UnsafeUnpin for SimdJsonError
impl UnwindSafe for SimdJsonError
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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