[−][src]Struct s25::S25Archive
An .S25 archive.
Implementations
impl S25Archive<File>
[src]
impl<'a> S25Archive<Cursor<&'a [u8]>>
[src]
pub fn from_raw_bytes<'b>(bytes: &'b [u8]) -> Result<Self> where
'b: 'a,
[src]
'b: 'a,
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]
A: Read + Seek,
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
Auto Trait Implementations
impl<A> RefUnwindSafe for S25Archive<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for S25Archive<A> where
A: Send,
A: Send,
impl<A> Sync for S25Archive<A> where
A: Sync,
A: Sync,
impl<A> Unpin for S25Archive<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for S25Archive<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,