Enum pmd_farc::FileHashType [−][src]
This enum store the way we can find the name of the files of the compressed file
Variants
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]
fn clone(&self) -> FileHashType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FileHashType
[src]
impl Debug for FileHashType
[src]
impl PartialEq<FileHashType> for FileHashType
[src]
fn eq(&self, other: &FileHashType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for FileHashType
[src]
Auto Trait Implementations
impl RefUnwindSafe for FileHashType
impl Send for FileHashType
impl Sync for FileHashType
impl Unpin for FileHashType
impl UnwindSafe for FileHashType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,