pub struct JsonError {
pub error_type: JsonErrorType,
pub index: usize,
}
Expand description
Represents an error from parsing JSON
Fields§
§error_type: JsonErrorType
The type of error.
index: usize
The index in the data where the error occurred.
Implementations§
source§impl JsonError
impl JsonError
pub fn get_position(&self, json_data: &[u8]) -> LinePosition
pub fn description(&self, json_data: &[u8]) -> String
Trait Implementations§
source§impl From<JsonError> for JiterError
impl From<JsonError> for JiterError
source§impl PartialEq for JsonError
impl PartialEq for JsonError
impl Eq for JsonError
impl StructuralPartialEq for JsonError
Auto Trait Implementations§
impl Freeze for JsonError
impl RefUnwindSafe for JsonError
impl Send for JsonError
impl Sync for JsonError
impl Unpin for JsonError
impl UnwindSafe for JsonError
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