pub trait ArchiveContent: Read {
// Required method
fn name(&self) -> &str;
// Provided methods
fn is_script(&self) -> bool { ... }
fn script_type(&self) -> Option<&ScriptType> { ... }
fn data(&mut self) -> Result<Vec<u8>> { ... }
fn to_data<'a>(&'a mut self) -> Result<Box<dyn ReadSeek + 'a>> { ... }
}
Expand description
A trait to present the file in an archive.
Required Methods§
Provided Methods§
Sourcefn script_type(&self) -> Option<&ScriptType>
fn script_type(&self) -> Option<&ScriptType>
Returns the script type if the file is a script.
Implementors§
impl ArchiveContent for msg_tool::scripts::cat_system::archive::int::MemEntry
Available on crate features
cat-system-arc
and cat-system
only.impl ArchiveContent for msg_tool::scripts::escude::archive::Entry
Available on crate features
escude-arc
and escude
only.impl ArchiveContent for msg_tool::scripts::yaneurao::itufuru::archive::Entry
Available on crate features
yaneurao-itufuru
and yaneurao
only.impl<F: Fn(&[u8], usize, &str) -> Option<&'static ScriptType>> ArchiveContent for msg_tool::scripts::bgi::archive::v1::MemEntry<F>
Available on crate features
bgi-arc
and bgi
only.impl<F: Fn(&[u8], usize, &str) -> Option<&'static ScriptType>> ArchiveContent for msg_tool::scripts::bgi::archive::v2::MemEntry<F>
Available on crate features
bgi-arc
and bgi
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::artemis::archive::pfs::Entry<T>
Available on crate features
artemis-arc
and artemis
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::bgi::archive::v1::Entry<T>
Available on crate features
bgi-arc
and bgi
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::bgi::archive::v2::Entry<T>
Available on crate features
bgi-arc
and bgi
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::cat_system::archive::int::Entry<T>
Available on crate features
cat-system-arc
and cat-system
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::circus::archive::crm::Entry<T>
Available on crate features
circus-arc
and circus
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::circus::archive::dat::Entry<T>
Available on crate features
circus-arc
and circus
only.impl<T: Read + Seek> ArchiveContent for msg_tool::scripts::circus::archive::pck::Entry<T>
Available on crate features
circus-arc
and circus
only.impl<T: Read + Seek, F: Fn(&[u8], usize, &str) -> Option<&'static ScriptType>> ArchiveContent for BseReader<T, F>
Available on crate features
bgi-arc
and bgi
only.