pub enum Error {
Syntax(String, usize),
InvalidIdentifier(String, usize),
IntegerTooBig(usize),
FileNotFound(String),
// some variants omitted
}
Expand description
An error that occurred during parsing of a SVMap file.
Variants§
Syntax(String, usize)
A syntax error containing an error message and the line number on which the error occurred.
InvalidIdentifier(String, usize)
An invalid identifier error containing the identifier and the line number on which the error occurred.
IntegerTooBig(usize)
An integer was bigger than allowed (specifically AddressType::MAX
).
Contains the line number on which the error occurred.
FileNotFound(String)
The file at the specified filepath was not found. Contains the filepath.
Trait Implementations§
source§impl PartialEq<Error> for Error
impl PartialEq<Error> for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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