[][src]Struct smash_arc::FilePath

pub struct FilePath {
    pub path: HashToIndex,
    pub ext: HashToIndex,
    pub parent: HashToIndex,
    pub file_name: HashToIndex,
}

A set of hashes representing the components of a path

Note: since each component is a hash, a HashLabels object is needed to recover the string forms of the components

Fields

path: HashToIndex

Hash of the full absolute path

For example, the path "fighter/mario/c00/model.nutexb" would have a path of "fighter/mario/c00/model.nutexb"

ext: HashToIndex

Hash of the file extension

For example, the path "fighter/mario/c00/model.nutexb" would have an extension of "nutexb"

parent: HashToIndex

Hash of the absolute path of the parent directory

For example, the path "fighter/mario/c00/model.nutexb" would have a parent of "fighter/mario/c00" (or "fighter/mario/c00/")

file_name: HashToIndex

Hash of the name of the file relative to the parent directory

For example, the path "fighter/mario/c00/model.nutexb" would have a filename of "model.nutexb"

Trait Implementations

impl BinRead for FilePath[src]

type Args = ()

The type of arguments needed to be supplied in order to read this type, usually a tuple. Read more

impl Clone for FilePath[src]

impl Copy for FilePath[src]

impl Debug for FilePath[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.