[−][src]Struct mobi::MobiHeader
Strcture that holds Mobi header information
Fields
identifier: u32header_length: u32mobi_type: u32text_encoding: u32id: u32gen_version: u32first_non_book_index: u32name: Stringname_offset: u32name_length: u32language: u32input_language: u32output_language: u32format_version: u32first_image_index: u32first_huff_record: u32huff_record_count: u32first_data_record: u32data_record_count: u32exth_flags: u32has_exth_header: booldrm_offset: u32drm_count: u32drm_size: u32drm_flags: u32last_image_record: u16fcis_record: u32flis_record: u32Methods
impl MobiHeader[src]
pub fn parse(content: &[u8], num_of_records: u16) -> Result<MobiHeader, Error>[src]
Parse a Mobi header from the content
pub fn name(content: &[u8], num_of_records: u16) -> Result<String, Error>[src]
Returns the book name
Trait Implementations
impl PartialEq<MobiHeader> for MobiHeader[src]
fn eq(&self, other: &MobiHeader) -> bool[src]
fn ne(&self, other: &MobiHeader) -> bool[src]
impl Debug for MobiHeader[src]
Auto Trait Implementations
impl Unpin for MobiHeader
impl Sync for MobiHeader
impl Send for MobiHeader
impl UnwindSafe for MobiHeader
impl RefUnwindSafe for MobiHeader
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
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> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,