Enum elma::ElmaError [−][src]
pub enum ElmaError { AcrossUnsupported, InvalidLevelFile, InvalidLevelFilename, InvalidReplayFile, InvalidStateFile, InvalidLGRFile(LGRError), InvalidGravity(i32), InvalidObject(i32), InvalidClipping(i32), EODMismatch, EOFMismatch, InvalidEvent(u8), EORMismatch, InvalidTimeFormat, PaddingTooShort(isize), NonASCII, Io(ErrorKind), StringFromUtf8(usize), }
General errors.
Variants
AcrossUnsupported
Across files are not supported.
InvalidLevelFile
Invalid level file.
InvalidLevelFilename
Invalid level file name.
InvalidReplayFile
Invalid replay file.
InvalidStateFile
Invalid state file.
InvalidLGRFile(LGRError)
Invalid LGR file.
InvalidGravity(i32)
Invalid gravity value.
InvalidObject(i32)
Invalid object value.
InvalidClipping(i32)
Invalid clipping value.
EODMismatch
End-of-data marker mismatch.
EOFMismatch
End-of-file marker mismatch.
InvalidEvent(u8)
Invalid event value.
EORMismatch
End-of-replay marker mismatch.
InvalidTimeFormat
Invalid time format.
PaddingTooShort(isize)
Too short padding.
NonASCII
String contains non-ASCII characters.
Io(ErrorKind)
Input/output errors from std::io use.
StringFromUtf8(usize)
String errors from std::String.
Trait Implementations
impl Debug for ElmaError
[src]
impl Debug for ElmaError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ElmaError
[src]
impl PartialEq for ElmaError
fn eq(&self, other: &ElmaError) -> bool
[src]
fn eq(&self, other: &ElmaError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ElmaError) -> bool
[src]
fn ne(&self, other: &ElmaError) -> bool
This method tests for !=
.
impl From<Error> for ElmaError
[src]
impl From<Error> for ElmaError
impl From<FromUtf8Error> for ElmaError
[src]
impl From<FromUtf8Error> for ElmaError
fn from(err: FromUtf8Error) -> ElmaError
[src]
fn from(err: FromUtf8Error) -> ElmaError
Performs the conversion.