pub struct Entry { /* private fields */ }
Expand description
Represents a file, directory, or symbolic link within an archive.
Implementations§
Source§impl Entry
impl Entry
Sourcepub fn new<P: AsRef<Path>>(path: P) -> Self
pub fn new<P: AsRef<Path>>(path: P) -> Self
Create an instance of Entry
based on the given path.
Sourcepub fn with_name<S: Into<String>>(name: S) -> Self
pub fn with_name<S: Into<String>>(name: S) -> Self
Create an instance of Entry
with just the given name.
Sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
Name of the entry, will be the full path when returned from Entries
.
pub fn size(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
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