[−][src]Struct smash_arc::FilePath
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
fn read_options<R: Read + Seek>(
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
[src]
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<Self>
fn after_parse<R: Read + Seek>(
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
[src]
&mut self,
__binread_generated_var_reader: &mut R,
__binread_generated_var_options: &ReadOptions,
__binread_generated_var_arguments: Self::Args
) -> BinResult<()>
pub fn read<R>(reader: &mut R) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn read_args<R>(reader: &mut R, args: Self::Args) -> Result<Self, Error> where
R: Read + Seek,
[src]
R: Read + Seek,
pub fn args_default() -> Option<Self::Args>
[src]
impl Clone for FilePath
[src]
impl Copy for FilePath
[src]
impl Debug for FilePath
[src]
Auto Trait Implementations
impl RefUnwindSafe for FilePath
[src]
impl Send for FilePath
[src]
impl Sync for FilePath
[src]
impl Unpin for FilePath
[src]
impl UnwindSafe for FilePath
[src]
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>,