#[non_exhaustive]pub struct Preview {
pub width: u32,
pub height: u32,
pub row_bytes: u32,
pub bitmap: Vec<u8>,
}Expand description
Embedded preview thumbnail, decoded and (optionally) upscaled to match the main image’s pixel dimensions.
Marked #[non_exhaustive] for the same reason as Page: see that
type’s docs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: u32Preview width in pixels.
height: u32Preview height in pixels.
row_bytes: u32Bytes per row.
bitmap: Vec<u8>1-bit packed, MSB-first, bit=1 means BLACK.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Preview
impl RefUnwindSafe for Preview
impl Send for Preview
impl Sync for Preview
impl Unpin for Preview
impl UnsafeUnpin for Preview
impl UnwindSafe for Preview
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