[][src]Struct ages_ice_archive::IceArchive

pub struct IceArchive { /* fields omitted */ }

A loaded ICE archive whose file groups can be iterated over.

Implementations

impl IceArchive[src]

pub fn new<R: Read + Seek>(src: R) -> Result<IceArchive>[src]

Open an IO source as an IceArchive, parsing the header from the start of the source.

pub fn unpack_group(&mut self, group: Group) -> Result<()>[src]

Unpack a group from the source, caching the decompressed data, for further indexing.

Does nothing if the group is already unpacked.

pub fn is_group_unpacked(&self, group: Group) -> bool[src]

true if the given group is already unpacked (i.e., can be indexed).

pub fn version(&self) -> u32[src]

The version of this ICE archive.

pub fn iter_group<'a>(
    &'a self,
    group: Group
) -> Result<impl Iterator<Item = IceFile<'a>>, GroupNotUnpacked>
[src]

Get an iterator over the files in a group, if the group is unpacked.

Call unpack_group before using.

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> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,