pub struct PreviewFrame {
pub file_bytes: Arc<Vec<u8>>,
pub pixmap: Pixmap,
pub notice: Option<String>,
}Expand description
A finished render plus the file bytes fetched for it (cached so later renders skip the fetch).
Fields§
§file_bytes: Arc<Vec<u8>>§pixmap: Pixmap§notice: Option<String>One-line summary of anything the render had to drop, so a preview that came out blank because pdfboss could not read the page says so instead of looking like an empty page.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PreviewFrame
impl RefUnwindSafe for PreviewFrame
impl Send for PreviewFrame
impl Sync for PreviewFrame
impl Unpin for PreviewFrame
impl UnsafeUnpin for PreviewFrame
impl UnwindSafe for PreviewFrame
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more