[][src]Struct sarc::SarcFile

pub struct SarcFile {
    pub byte_order: Endian,
    pub files: Vec<SarcEntry>,
}

Fields

byte_order: Endianfiles: Vec<SarcEntry>

Methods

impl SarcFile[src]

pub fn read_from_file<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

pub fn read(data: &[u8]) -> Result<Self, Error>[src]

impl SarcFile[src]

pub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>[src]

pub fn write_to_compressed_file<P: AsRef<Path>>(
    &self,
    path: P
) -> Result<(), Error>
[src]

pub fn write_to_yaz0_file<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]

pub fn write_yaz0<W: Write>(&self, f: &mut W) -> Result<(), Error>[src]

pub fn write_zstd<W: Write>(&self, f: &mut W) -> Result<(), Error>[src]

pub fn write<W: Write>(&self, f: &mut W) -> Result<()>[src]

Trait Implementations

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