[−][src]Struct xar::toc::Toc
Table of contents.
Methods
impl Toc
[src]
pub fn from_read<T: Read>(
reader: &mut T,
_expected: usize
) -> Result<Toc, Error>
[src]
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
[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(&self) -> 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]
T: Display + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,