Struct tar_no_std::ArchiveEntry
source · pub struct ArchiveEntry<'a> { /* private fields */ }
Expand description
Describes an entry in an archive. Currently only supports files but no directories.
Implementations§
source§impl<'a> ArchiveEntry<'a>
impl<'a> ArchiveEntry<'a>
sourcepub const fn filename(&self) -> ArrayString<{ FILENAME_MAX_LEN }>
pub const fn filename(&self) -> ArrayString<{ FILENAME_MAX_LEN }>
Filename of the entry with a maximum of 100 characters (including the terminating NULL-byte).
sourcepub fn data_as_str(&self) -> Result<&'a str, Utf8Error>
pub fn data_as_str(&self) -> Result<&'a str, Utf8Error>
Data of the file as string slice, if data is valid UTF-8.