Trait Archive

Source
pub trait Archive {
    // Required methods
    fn new_file<'a>(&'a mut self, name: &str) -> Result<Box<dyn WriteSeek + 'a>>;
    fn write_header(&mut self) -> Result<()>;
}
Expand description

A trait for creating archives.

Required Methods§

Source

fn new_file<'a>(&'a mut self, name: &str) -> Result<Box<dyn WriteSeek + 'a>>

Creates a new file in the archive.

Source

fn write_header(&mut self) -> Result<()>

Writes the header of the archive. (Must be called after writing all files.)

Implementors§

Source§

impl<T: Write + Seek + Read> Archive for ArtemisArcWriter<T>

Available on crate features artemis-arc and artemis only.
Source§

impl<T: Write + Seek> Archive for msg_tool::scripts::bgi::archive::v1::BgiArchiveWriter<T>

Available on crate features bgi-arc and bgi only.
Source§

impl<T: Write + Seek> Archive for msg_tool::scripts::bgi::archive::v2::BgiArchiveWriter<T>

Available on crate features bgi-arc and bgi only.
Source§

impl<T: Write + Seek> Archive for PckArchiveWriter<T>

Available on crate features circus-arc and circus only.
Source§

impl<T: Write + Seek> Archive for EscudeBinArchiveWriter<T>

Available on crate features escude-arc and escude only.
Source§

impl<T: Write + Seek> Archive for ItufuruArchiveWriter<T>

Available on crate features yaneurao-itufuru and yaneurao only.