pub struct FileHeader { /* private fields */ }Expand description
Parsed standalone JBIG2 file-header metadata.
Implementations§
Source§impl FileHeader
impl FileHeader
Sourcepub const fn organization(self) -> Organization
pub const fn organization(self) -> Organization
Standalone segment organization.
Sourcepub const fn page_count(self) -> Option<u32>
pub const fn page_count(self) -> Option<u32>
Declared page count, or None if the header marks it unknown.
Sourcepub const fn uses_extended_templates(self) -> bool
pub const fn uses_extended_templates(self) -> bool
Whether the stream may use generic templates with 12 adaptive pixels.
Sourcepub const fn uses_colour_regions(self) -> bool
pub const fn uses_colour_regions(self) -> bool
Whether the stream declares coloured regions.
Sourcepub const fn byte_length(self) -> usize
pub const fn byte_length(self) -> usize
Number of bytes occupied by the file header.
Trait Implementations§
Source§impl Clone for FileHeader
impl Clone for FileHeader
impl Copy for FileHeader
Source§impl Debug for FileHeader
impl Debug for FileHeader
impl Eq for FileHeader
Source§impl PartialEq for FileHeader
impl PartialEq for FileHeader
impl StructuralPartialEq for FileHeader
Auto Trait Implementations§
impl Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnsafeUnpin for FileHeader
impl UnwindSafe for FileHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more