pub enum GenieError {
InvalidLength(usize),
InvalidCharacter(char),
}Expand description
Error returned when a Game Genie code string cannot be decoded.
Variants§
InvalidLength(usize)
The code was not 6 or 8 characters long.
InvalidCharacter(char)
The code contained a letter outside the 16-letter Game Genie alphabet
(A P Z L G I T Y E O X U K S V N, case-insensitive).
Trait Implementations§
Source§impl Clone for GenieError
impl Clone for GenieError
Source§fn clone(&self) -> GenieError
fn clone(&self) -> GenieError
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 GenieError
impl Debug for GenieError
Source§impl Display for GenieError
impl Display for GenieError
Source§impl Error for GenieError
impl Error for GenieError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for GenieError
impl PartialEq for GenieError
impl Eq for GenieError
impl StructuralPartialEq for GenieError
Auto Trait Implementations§
impl Freeze for GenieError
impl RefUnwindSafe for GenieError
impl Send for GenieError
impl Sync for GenieError
impl Unpin for GenieError
impl UnsafeUnpin for GenieError
impl UnwindSafe for GenieError
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