pub enum RaceParseError {
NotAMarker(NotAMarker),
CamelInOasis,
CamelInFataMorgana,
ToManyAdjustmentsInOnePosition,
ConsecutiveAdjustments,
}
Expand description
When parsing of Race goes wrong, this enumeration tells you precisely what went down.
Variants§
NotAMarker(NotAMarker)
a race consists solely of markers, and this isn’t a marker.
CamelInOasis
a camel can’t be in an oasis.
CamelInFataMorgana
a camel can’t be in a fata morgana.
ToManyAdjustmentsInOnePosition
adjustments can’t be in the same position.
ConsecutiveAdjustments
adjustments can’t be consecutive.
Trait Implementations§
Source§impl Debug for RaceParseError
impl Debug for RaceParseError
Source§impl From<NotAMarker> for RaceParseError
impl From<NotAMarker> for RaceParseError
Source§fn from(problem: NotAMarker) -> Self
fn from(problem: NotAMarker) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RaceParseError
impl PartialEq for RaceParseError
impl StructuralPartialEq for RaceParseError
Auto Trait Implementations§
impl Freeze for RaceParseError
impl RefUnwindSafe for RaceParseError
impl Send for RaceParseError
impl Sync for RaceParseError
impl Unpin for RaceParseError
impl UnwindSafe for RaceParseError
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