Struct ar::Archive
[−]
[src]
pub struct Archive<R: Read> { /* fields omitted */ }
A structure for reading archives.
Methods
impl<R: Read> Archive<R>
[src]
fn new(reader: R) -> Archive<R>
Create a new archive reader with the underlying reader object as the source of all data read.
fn variant(&self) -> Variant
Returns which format variant this archive appears to be so far.
Note that this may not be accurate before the archive has been fully
read (i.e. before the next_entry()
method returns None
). In
particular, a new Archive
object that hasn't yet read any data at all
will always return Variant::Common
.
fn into_inner(self) -> Result<R>
Unwrap this archive reader, returning the underlying reader object.
fn next_entry(&mut self) -> Option<Result<Entry<R>>>
Reads the next entry from the archive, or returns None if there are no more.