pub enum EncodeError {
NoStartBlock,
NonAsciiString,
TooManyIdentifications,
NoBasevalueGiven(u8),
TooManyPowders,
EffectStrengthTooHigh(u8),
TooManySkills,
TooManyDamageValues,
TooManyEffects,
TooManyDefences,
}
Expand description
Potential errors thrown during encoding of id strings
Variants§
NoStartBlock
No start data block was found when encoding
NonAsciiString
Encoder was given a string with non ascii characters.
TooManyIdentifications
More than 255 identifications were passed for encoding
NoBasevalueGiven(u8)
Identification is missing a basevalue while using the extended encoding scheme.
An id is required to have an basevalue if the extended encoding is used for idents
TooManyPowders
More than 255 powders were passed for encoding
EffectStrengthTooHigh(u8)
Effect strength should be a percentage between 0 and 100
TooManySkills
More than 255 skills were passed for encoding
TooManyDamageValues
More than 255 damage values were passed for encoding
TooManyEffects
More than 255 effects were passed for encoding
TooManyDefences
More than 255 defense values were passed for encoding
Trait Implementations§
Source§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl Error for EncodeError
impl Error for EncodeError
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()
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
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