Enum pmd_farc::FileHashType[][src]

pub enum FileHashType {
    Message,
}

This enum store the way we can find the name of the files of the compressed file

Variants

Message

In can this file contain files that have translated text. The game include debug information, in the form of an adjacent .lst file, that allow to know their name. See [message_dehasher] for function allowing to parse them

Implementations

impl FileHashType[src]

#[must_use]pub fn predict_from_file_name(file_name: &str) -> Option<Self>[src]

Try to find the way to get the name of files in the archive, based on the archive name

Return None if the method can’t be found or is not implemented

Example

use pmd_farc::FileHashType;
assert_eq!(FileHashType::predict_from_file_name("message.bin"), Some(FileHashType::Message));
assert_eq!(FileHashType::predict_from_file_name("unknown.bin"), None);

Trait Implementations

impl Clone for FileHashType[src]

impl Copy for FileHashType[src]

impl Debug for FileHashType[src]

impl PartialEq<FileHashType> for FileHashType[src]

impl StructuralPartialEq for FileHashType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.