#[non_exhaustive]pub enum ConvertOpeningTitleBetweenRegionsError {
InvalidU8File(ParseU8Error),
InvalidOpeningTitleStructure(String),
MissingFiles(String),
FileDataConflict(String, String),
FilenameAlreadyExists(String),
IoError(Error),
}Expand description
All errors that can be encountered when converting an openingTitle.arc between regions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidU8File(ParseU8Error)
The openingTitle.arc is an invalid U8 archive file.
InvalidOpeningTitleStructure(String)
The openingTitle.arc is wrong in a structural sense (not a parsing sense).
MissingFiles(String)
At least one required file was missing. The file might exist but for a different region, or it might just be completely absent.
FileDataConflict(String, String)
Two files that need to be merged have different data.
FilenameAlreadyExists(String)
A filename that needs to be added already exists.
IoError(Error)
All other errors.
Trait Implementations§
Source§impl Error for ConvertOpeningTitleBetweenRegionsError
impl Error for ConvertOpeningTitleBetweenRegionsError
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<ParseU8Error> for ConvertOpeningTitleBetweenRegionsError
impl From<ParseU8Error> for ConvertOpeningTitleBetweenRegionsError
Source§fn from(source: ParseU8Error) -> Self
fn from(source: ParseU8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConvertOpeningTitleBetweenRegionsError
impl !RefUnwindSafe for ConvertOpeningTitleBetweenRegionsError
impl Send for ConvertOpeningTitleBetweenRegionsError
impl Sync for ConvertOpeningTitleBetweenRegionsError
impl Unpin for ConvertOpeningTitleBetweenRegionsError
impl !UnwindSafe for ConvertOpeningTitleBetweenRegionsError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more