[][src]Struct mobi::PalmDocHeader

pub struct PalmDocHeader {
    pub compression: u16,
    pub text_length: u32,
    pub record_count: u16,
    pub record_size: u16,
    pub encryption_type: u16,
}

Strcture that holds PalmDOC header information

Fields

compression: u16text_length: u32record_count: u16record_size: u16encryption_type: u16

Methods

impl PalmDocHeader[src]

pub fn parse(
    content: &[u8],
    num_of_records: u16
) -> Result<PalmDocHeader, Error>
[src]

Parse a PalmDOC header from the content

pub fn compression(&self) -> Option<String>[src]

pub fn encryption(&self) -> Option<String>[src]

Trait Implementations

impl PartialEq<PalmDocHeader> for PalmDocHeader[src]

impl Default for PalmDocHeader[src]

impl Display for PalmDocHeader[src]

impl Debug for PalmDocHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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