pub struct Toc { /* private fields */ }Expand description
Table of contents.
Implementations§
Source§impl Toc
impl Toc
Sourcepub fn from_read<T: Read>(
reader: &mut T,
_expected: usize,
) -> Result<Toc, Error>
pub fn from_read<T: Read>( reader: &mut T, _expected: usize, ) -> Result<Toc, Error>
Contstruct a toc from a reader pointed at the start of it.
pub fn data(&self) -> &Element
Sourcepub fn creation_time(&self) -> Result<NaiveDateTime, Error>
pub fn creation_time(&self) -> Result<NaiveDateTime, Error>
Compute creation time of Toc.
Sourcepub fn checksum_type(&self) -> Result<&String, Errors>
pub fn checksum_type(&self) -> Result<&String, Errors>
Get what type of checksum was used for the Toc.
Sourcepub fn checksum_offset(&self) -> Result<usize, Error>
pub fn checksum_offset(&self) -> Result<usize, Error>
Find out at which offset the checksum is.
Sourcepub fn checksum_size(&self) -> Result<usize, Error>
pub fn checksum_size(&self) -> Result<usize, Error>
Find out how many bytes the checksum is.
pub fn files(&self) -> Result<Files<'_>, Errors>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Toc
impl RefUnwindSafe for Toc
impl Send for Toc
impl Sync for Toc
impl Unpin for Toc
impl UnwindSafe for Toc
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