[][src]Struct klu_core::read::Archive

pub struct Archive { /* fields omitted */ }

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]

Extract a single file from the archive Returns true if the file exists inside the archive, false otherwise

Trait Implementations

impl Debug for Archive[src]

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]

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.