Struct mobi::headers::ExtHeader

source ·
pub struct ExtHeader {
    pub identifier: u32,
    pub header_length: u32,
    pub record_count: u32,
    pub records: IndexMap<ExthRecord, Vec<Vec<u8>>>,
}
Expand description

Optional header containing extended information. If the MOBI header indicates that there’s an EXTH header, it follows immediately after the MOBI header.

Fields§

§identifier: u32§header_length: u32§record_count: u32§records: IndexMap<ExthRecord, Vec<Vec<u8>>>

Implementations§

Returns exth record data located at position. This is a low level function intended to use with wrapper get_record, but exposed for convienience.

Returns exth record data. This function limits possible queried records to only those commonly available among mobi ebooks.

Returns an iterator over all available raw EXTH records.

Returns an iterator over all available EXTH records and performs a loseless conversion of record data to string.

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.