Struct mobi::headers::MobiHeader

source ·
pub struct MobiHeader {
Show 34 fields pub identifier: u32, pub header_length: u32, pub mobi_type: MobiType, pub text_encoding: TextEncoding, pub id: u32, pub gen_version: u32, pub ortho_index: u32, pub inflect_index: u32, pub index_names: u32, pub index_keys: u32, pub extra_indices: [u32; 6], pub first_non_book_index: u32, pub name_offset: u32, pub name_length: u32, pub locale: u8, pub language_code: Language, pub input_language: u32, pub output_language: u32, pub format_version: u32, pub first_image_index: u32, pub first_huff_record: u32, pub huff_record_count: u32, pub huff_table_offset: u32, pub huff_table_length: u32, pub exth_flags: u32, pub drm_offset: u32, pub drm_count: u32, pub drm_size: u32, pub drm_flags: u32, pub first_content_record: u16, pub last_content_record: u16, pub fcis_record: u32, pub flis_record: u32, pub first_index_record: u32, /* private fields */
}
Expand description

Strcture that holds Mobi header information

Fields§

§identifier: u32§header_length: u32§mobi_type: MobiType§text_encoding: TextEncoding§id: u32§gen_version: u32§ortho_index: u32§inflect_index: u32§index_names: u32§index_keys: u32§extra_indices: [u32; 6]§first_non_book_index: u32§name_offset: u32§name_length: u32§locale: u8§language_code: Language§input_language: u32§output_language: u32§format_version: u32§first_image_index: u32§first_huff_record: u32§huff_record_count: u32§huff_table_offset: u32§huff_table_length: u32§exth_flags: u32§drm_offset: u32§drm_count: u32§drm_size: u32§drm_flags: u32§first_content_record: u16§last_content_record: u16§fcis_record: u32§flis_record: u32§first_index_record: u32

Implementations§

Checks if there is a Exth Header and changes the parameter

Checks if there is DRM on this book

Converts numerical value into a type

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.