pub struct XP3Archive<T: Read + Seek> { /* private fields */ }Expand description
An XP3 archive with XP3 container. Read only occur when user request.
Implementations§
Source§impl<T: Read + Seek> XP3Archive<T>
impl<T: Read + Seek> XP3Archive<T>
pub fn new(container: VirtualXP3, data: T) -> Self
pub fn container(&self) -> &VirtualXP3
pub fn entries(&self) -> Iter<'_, String, XP3FileIndex>
Sourcepub fn unpack(
&self,
name: &String,
stream: &mut impl Write,
) -> Result<(), XP3Error>
pub fn unpack( &self, name: &String, stream: &mut impl Write, ) -> Result<(), XP3Error>
Unpack file to stream
Sourcepub fn close(self) -> (VirtualXP3, T)
pub fn close(self) -> (VirtualXP3, T)
Close xp3 archive
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for XP3Archive<T>
impl<T> !RefUnwindSafe for XP3Archive<T>
impl<T> Send for XP3Archive<T>where
T: Send,
impl<T> !Sync for XP3Archive<T>
impl<T> Unpin for XP3Archive<T>where
T: Unpin,
impl<T> UnwindSafe for XP3Archive<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more