pub enum RonErrorKind {
UnexpectedToken {
expected: String,
found: String,
},
UnterminatedString,
DuplicateField {
field_name: String,
},
InvalidNumber {
text: String,
},
}Expand description
Specific kinds of errors that can occur when parsing a .ron data file.
Variants§
UnexpectedToken
A syntax error — the parser encountered a token it did not expect.
Fields
UnterminatedString
A string literal is missing its closing quote.
DuplicateField
The same field name appears more than once within a struct.
InvalidNumber
A numeric literal could not be parsed as a valid number.
Trait Implementations§
Source§impl Clone for RonErrorKind
impl Clone for RonErrorKind
Source§fn clone(&self) -> RonErrorKind
fn clone(&self) -> RonErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RonErrorKind
impl Debug for RonErrorKind
Source§impl PartialEq for RonErrorKind
impl PartialEq for RonErrorKind
impl Eq for RonErrorKind
impl StructuralPartialEq for RonErrorKind
Auto Trait Implementations§
impl Freeze for RonErrorKind
impl RefUnwindSafe for RonErrorKind
impl Send for RonErrorKind
impl Sync for RonErrorKind
impl Unpin for RonErrorKind
impl UnsafeUnpin for RonErrorKind
impl UnwindSafe for RonErrorKind
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