pub enum BitmapRender {
Eager,
Adaptive,
OnDemand,
}Expand description
When the 2x bitmap of a page with a text layer is rendered.
Variants§
Eager
As soon as the page leaves the walk, on the helper thread while layout runs (#682) — for a caller that reads every page’s bitmap.
Adaptive
Started like Self::Eager while the document’s recent pages mostly
read their bitmap, left Self::OnDemand while they mostly do not
(#897). Layout reads the separate 1x render, and a page whose
detections hold no table, picture or other bitmap consumer never
needs the 2x one: on a paper with a figure or table on most pages
the render overlaps layout as before; on prose the wasted renders go.
A started render the page then declines (PdfPage::decline_image)
is still skipped if the helper has not begun it.
OnDemand
Only once PdfPage::resolve_image asks for it (#897): no render is
ever wasted, but a page that needs one waits for it after layout
instead of having it drawn meanwhile.
Trait Implementations§
Source§impl Clone for BitmapRender
impl Clone for BitmapRender
impl Copy for BitmapRender
Source§impl Debug for BitmapRender
impl Debug for BitmapRender
impl Eq for BitmapRender
Source§impl PartialEq for BitmapRender
impl PartialEq for BitmapRender
impl StructuralPartialEq for BitmapRender
Auto Trait Implementations§
impl Forget for BitmapRender
impl Freeze for BitmapRender
impl RefUnwindSafe for BitmapRender
impl Send for BitmapRender
impl Sync for BitmapRender
impl Unpin for BitmapRender
impl UnsafeUnpin for BitmapRender
impl UnwindSafe for BitmapRender
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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> ⓘ
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