[][src]Struct mobi::ExtHeader

pub struct ExtHeader {
    pub identifier: u32,
    pub header_length: u32,
    pub record_count: u32,
    pub records: HashMap<u32, String>,
}

Strcture that holds Exth header information

Fields

identifier: u32header_length: u32record_count: u32records: HashMap<u32, String>

Methods

impl ExtHeader[src]

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

Parse a Exth header from the content

pub fn get_book_info(&self, info: BookInfo) -> Option<&String>[src]

Trait Implementations

impl PartialEq<ExtHeader> for ExtHeader[src]

impl Default for ExtHeader[src]

impl Display for ExtHeader[src]

impl Debug for ExtHeader[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]