Enum rustc_serialize::json::DecoderError
source · [−]pub enum DecoderError {
ParseError(ParserError),
ExpectedError(String, String),
MissingFieldError(String),
UnknownVariantError(String),
ApplicationError(String),
EOF,
}
Variants
ParseError(ParserError)
ExpectedError(String, String)
MissingFieldError(String)
UnknownVariantError(String)
ApplicationError(String)
EOF
Trait Implementations
sourceimpl Debug for DecoderError
impl Debug for DecoderError
sourceimpl Display for DecoderError
impl Display for DecoderError
sourceimpl Error for DecoderError
impl Error for DecoderError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
sourceimpl From<ParserError> for DecoderError
impl From<ParserError> for DecoderError
sourcefn from(err: ParserError) -> DecoderError
fn from(err: ParserError) -> DecoderError
Performs the conversion.
sourceimpl PartialEq<DecoderError> for DecoderError
impl PartialEq<DecoderError> for DecoderError
sourcefn eq(&self, other: &DecoderError) -> bool
fn eq(&self, other: &DecoderError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DecoderError) -> bool
fn ne(&self, other: &DecoderError) -> bool
This method tests for !=
.
impl StructuralPartialEq for DecoderError
Auto Trait Implementations
impl !RefUnwindSafe for DecoderError
impl Send for DecoderError
impl Sync for DecoderError
impl Unpin for DecoderError
impl !UnwindSafe for DecoderError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more