pub enum ComboError {
InsufficientlyLongIterator,
IncongruentWeightClasses,
InvalidVehicleId,
InvalidCharacterId,
ImpossibleCharacterId,
ByteHandlerError(ByteHandlerError),
}Expand description
Errors that can occur while constructing or deserializing a Combo.
Variants§
InsufficientlyLongIterator
The input iterator did not contain enough bytes to extract a combo.
IncongruentWeightClasses
The character and vehicle belong to different weight classes.
InvalidVehicleId
The vehicle byte did not map to a known Vehicle variant.
InvalidCharacterId
The character byte did not map to a known Character variant.
ImpossibleCharacterId
The character ID corresponds to a character that cannot appear in ghost files.
ByteHandlerError(ByteHandlerError)
A ByteHandler operation failed.
Trait Implementations§
Source§impl Debug for ComboError
impl Debug for ComboError
Source§impl Display for ComboError
impl Display for ComboError
Source§impl Error for ComboError
impl Error for ComboError
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 From<ByteHandlerError> for ComboError
impl From<ByteHandlerError> for ComboError
Source§fn from(source: ByteHandlerError) -> Self
fn from(source: ByteHandlerError) -> Self
Converts to this type from the input type.
Source§impl From<ComboError> for HeaderError
impl From<ComboError> for HeaderError
Source§fn from(source: ComboError) -> Self
fn from(source: ComboError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ComboError
impl RefUnwindSafe for ComboError
impl Send for ComboError
impl Sync for ComboError
impl Unpin for ComboError
impl UnsafeUnpin for ComboError
impl UnwindSafe for ComboError
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