Struct Error
pub struct Error { /* private fields */ }
An error serializing or deserializing JSON5.
Implementations
impl Error
fn code(&self) -> Option<ErrorCode>fn position(&self) -> Option<Position>
impl Error
fn new(code: ErrorCode) -> Selffn new_at(position: Position, code: ErrorCode) -> Selffn custom<T: Display>(msg: T) -> Selffn custom_at<T: Display>(position: Position, msg: T) -> Selffn with_position(self, position: Position) -> Self
Trait Implementations
impl Clone for Error
fn clone(&self) -> Self
impl Debug for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Error for Error
fn custom<T: Display>(msg: T) -> Self
impl Error for Error
fn custom<T: Display>(msg: T) -> Self
impl Error for Error
impl From<Error> for Error
fn from(err: Error) -> Self
impl PartialEq for Error
fn eq(&self, other: &Self) -> bool