Enum sljs::error::ParseError
source · [−]pub enum ParseError {
InvalidJSON {
err: String,
},
ObjectWithout {
attr: String,
value: JSON,
},
UnexpectedValue {
want: &'static str,
value: JSON,
},
UnknownNodeType {
value: JSON,
},
ReferencedBeforeDeclaration {},
BindingRedeclared {
name: Identifier,
},
}
Variants
InvalidJSON
Fields
err: String
ObjectWithout
UnexpectedValue
UnknownNodeType
Fields
value: JSON
ReferencedBeforeDeclaration
Fields
BindingRedeclared
Fields
name: Identifier
Implementations
Trait Implementations
sourceimpl Debug for ParseError
impl Debug for ParseError
sourceimpl From<&str> for ParseError
impl From<&str> for ParseError
sourceimpl From<ParseError> for Exception
impl From<ParseError> for Exception
sourcefn from(err: ParseError) -> Self
fn from(err: ParseError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ParseError> for ParseError
impl PartialEq<ParseError> for ParseError
sourcefn eq(&self, other: &ParseError) -> bool
fn eq(&self, other: &ParseError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseError) -> bool
fn ne(&self, other: &ParseError) -> bool
This method tests for !=
.
impl Eq for ParseError
impl StructuralEq for ParseError
impl StructuralPartialEq for ParseError
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl !Send for ParseError
impl !Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more