Enum hoi4save::Hoi4ErrorKind
source · pub enum Hoi4ErrorKind {
Parse(Error),
Deserialize(Error),
Writer(Error),
UnknownToken {
token_id: u16,
},
InvalidDate(i32),
UnknownHeader,
}
Expand description
Specific type of error
Variants§
Trait Implementations§
source§impl Debug for Hoi4ErrorKind
impl Debug for Hoi4ErrorKind
source§impl Display for Hoi4ErrorKind
impl Display for Hoi4ErrorKind
source§impl Error for Hoi4ErrorKind
impl Error for Hoi4ErrorKind
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Hoi4ErrorKind> for Hoi4Error
impl From<Hoi4ErrorKind> for Hoi4Error
source§fn from(err: Hoi4ErrorKind) -> Self
fn from(err: Hoi4ErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Hoi4ErrorKind
impl Send for Hoi4ErrorKind
impl Sync for Hoi4ErrorKind
impl Unpin for Hoi4ErrorKind
impl !UnwindSafe for Hoi4ErrorKind
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