Struct pmd_farc::FarcFile[][src]

pub struct FarcFile {
    pub start: u32,
    pub length: u32,
    pub name_hash: u32,
    pub name: Option<String>,
}

Represent a file stored in a farc file

Fields

start: u32

The offset since the beggining of the farc file this subfile is present

length: u32

The lenght of the subfile

name_hash: u32

the crc32 of the name of this subfile

name: Option<String>

The name of this subfile

Implementations

impl FarcFile[src]

#[must_use]pub const fn new(
    start: u32,
    length: u32,
    name_hash: u32,
    name: Option<String>
) -> Self
[src]

Create a new FarcFile with the given parameter

Trait Implementations

impl Clone for FarcFile[src]

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