pub enum Entry {
File(File),
Directory(Directory),
DirectoryEnd(u64),
}Variants§
Implementations§
Source§impl Entry
impl Entry
pub fn name(&self) -> &str
pub fn is_directory(&self) -> bool
pub fn is_file(&self) -> bool
pub fn uncompressed_size(&self, fork: Fork) -> usize
pub fn checksum(&self, fork: Fork) -> u16
pub fn has(&self, fork: Fork) -> bool
pub fn encrypted(&self, fork: Fork) -> bool
pub fn comment(&self) -> &str
pub fn as_file(&self) -> Option<&File>
pub fn as_directory(&self) -> Option<&Directory>
pub fn into_file(self) -> Option<File>
pub fn into_directory(self) -> Option<Directory>
Trait Implementations§
Source§impl ReadableEntry for Entry
impl ReadableEntry for Entry
fn encrypted(&self, fork: Fork) -> bool
Source§fn algorithm(&self, fork: Fork) -> Algorithm
fn algorithm(&self, fork: Fork) -> Algorithm
Algorithm used to compress the entry’s data or resource fork
Source§fn compressed_size(&self, fork: Fork) -> usize
fn compressed_size(&self, fork: Fork) -> usize
Amount of bytes occupied by the specified fork
Source§fn uncompressed_size(&self, fork: Fork) -> usize
fn uncompressed_size(&self, fork: Fork) -> usize
Size of the fork in bytes after decompression
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin 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