[][src]Struct s25::S25Archive

pub struct S25Archive<A = File> { /* fields omitted */ }

An .S25 archive.

Implementations

impl S25Archive<File>[src]

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

Opens an S25 archive.

impl<'a> S25Archive<Cursor<&'a [u8]>>[src]

pub fn from_raw_bytes<'b>(bytes: &'b [u8]) -> Result<Self> where
    'b: 'a, 
[src]

Loads an S25 archive from raw bytes.

impl<A> S25Archive<A>[src]

pub fn total_entries(&self) -> usize[src]

Returns the total entries in the archive.

pub fn total_layers(&self) -> usize[src]

Returns the total layers in the archive.

impl<A> S25Archive<A> where
    A: Read + Seek
[src]

pub fn load_image_metadata(&mut self, entry: usize) -> Result<S25ImageMetadata>[src]

Loads the metadata of an image entry.

pub fn load_image(&mut self, entry: usize) -> Result<S25Image>[src]

Loads an image entry.

Trait Implementations

impl<T> From<T> for S25Archive<T> where
    T: Read + Seek
[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for S25Archive<A> where
    A: RefUnwindSafe

impl<A> Send for S25Archive<A> where
    A: Send

impl<A> Sync for S25Archive<A> where
    A: Sync

impl<A> Unpin for S25Archive<A> where
    A: Unpin

impl<A> UnwindSafe for S25Archive<A> where
    A: UnwindSafe

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.