[][src]Struct smash_arc::DirInfo

pub struct DirInfo {
    pub path_hash: u32,
    pub dir_offset_index: u32,
    pub name: Hash40,
    pub parent: Hash40,
    pub extra_dis_re: u32,
    pub extra_dis_re_length: u32,
    pub file_name_start_index: u32,
    pub file_info_count: u32,
    pub child_dir_start_index: u32,
    pub child_dir_count: u32,
    pub flags: u32,
}

Various info about a directory. This can either represent a "real" directory, or merely a mass-loading group.

Fields

path_hash: u32

A crc32 of the path of the directory

dir_offset_index: u32name: Hash40

The name of the directory, relative to the parent

parent: Hash40

The parent directory this directory is within

extra_dis_re: u32extra_dis_re_length: u32file_name_start_index: u32file_info_count: u32child_dir_start_index: u32child_dir_count: u32flags: u32

Implementations

impl DirInfo[src]

pub fn path_hash40(&self) -> Hash40[src]

Trait Implementations

impl BinRead for DirInfo[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 DirInfo[src]

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