[−][src]Struct klu_core::read::Archive
Main struct of this modules, This represent an archive, allows you to read from it;
Methods
impl Archive
[src]
pub const ID: [u8; 4]
[src]
ID bytes of archive
pub fn from_path<P: AsRef<Path>>(path: P) -> ReadResult<Self>
[src]
Read an archive from a path
pub fn path_exist<P: AsRef<Path>>(&mut self, path: P) -> bool
[src]
Returns true if a file at given path exists inside the archive
impl Archive
[src]
User's function for using an Archive
pub fn release<P: AsRef<Path>>(&mut self, path: P) -> ReadResult<()>
[src]
Extract all archive's content onto a directory
pub fn paths(&self) -> Vec<String>
[src]
Return a [Vec<String>]
with all files inside the archive
pub fn extract_file<P: AsRef<Path>>(
&mut self,
path: P,
out: P
) -> ReadResult<bool>
[src]
&mut self,
path: P,
out: P
) -> ReadResult<bool>
Extract a single file from the archive Returns true if the file exists inside the archive, false otherwise
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Archive
impl !Send for Archive
impl !Sync for Archive
impl Unpin for Archive
impl !UnwindSafe for Archive
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>,