[][src]Struct xar::toc::Toc

pub struct Toc { /* fields omitted */ }

Table of contents.

Methods

impl Toc[src]

pub fn from_read<T: Read>(
    reader: &mut T,
    _expected: usize
) -> Result<Toc, Error>
[src]

Contstruct a toc from a reader pointed at the start of it.

pub fn data(&self) -> &Element[src]

pub fn write<W: Write>(&self, writer: W) -> Result<(), Error>[src]

Print the toc as XML to writer.

pub fn creation_time(&self) -> Result<NaiveDateTime, Error>[src]

Compute creation time of Toc.

pub fn checksum_type(&self) -> Result<&String, Errors>[src]

Get what type of checksum was used for the Toc.

pub fn checksum_offset(&self) -> Result<usize, Error>[src]

Find out at which offset the checksum is.

pub fn checksum_size(&self) -> Result<usize, Error>[src]

Find out how many bytes the checksum is.

pub fn files(&self) -> Result<Files, Errors>[src]

Trait Implementations

impl Clone for Toc[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Toc[src]

impl Display for Toc[src]

Auto Trait Implementations

impl Send for Toc

impl Unpin for Toc

impl Sync for Toc

impl UnwindSafe for Toc

impl RefUnwindSafe for Toc

Blanket Implementations

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]