#[non_exhaustive]pub enum ParseErrorKind {
MissingHeader(&'static str),
UnknownHeader,
EmptyMap,
BadNumber,
RowLength {
expected: usize,
found: usize,
},
UnknownCell(char),
MissingRows,
ExtraRows,
FieldCount {
found: usize,
},
OutsideMap,
}Expand description
What is wrong in a ParseError.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingHeader(&'static str)
A required header line or field is missing: type, height, width or map in a
map, version in a scenario.
UnknownHeader
A map header line is not one of type, height, width or map.
EmptyMap
The map declares a zero width or height.
BadNumber
A field that must be a number is not one.
RowLength
A map row has the wrong number of cells.
UnknownCell(char)
A map cell is not one of ., G, S, @, O, T, W.
MissingRows
The map has fewer rows than its height.
ExtraRows
The map has non-empty lines after its last row.
FieldCount
A scenario line does not have nine fields.
OutsideMap
A scenario start or goal lies outside the map size the entry declares.
Trait Implementations§
Source§impl Clone for ParseErrorKind
impl Clone for ParseErrorKind
impl Copy for ParseErrorKind
Source§impl Debug for ParseErrorKind
impl Debug for ParseErrorKind
impl Eq for ParseErrorKind
Source§impl PartialEq for ParseErrorKind
impl PartialEq for ParseErrorKind
impl StructuralPartialEq for ParseErrorKind
Auto Trait Implementations§
impl Forget for ParseErrorKind
impl Freeze for ParseErrorKind
impl Move for ParseErrorKind
impl RefUnwindSafe for ParseErrorKind
impl Send for ParseErrorKind
impl Sync for ParseErrorKind
impl Unpin for ParseErrorKind
impl UnsafeUnpin for ParseErrorKind
impl UnwindSafe for ParseErrorKind
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