#[non_exhaustive]pub enum RasterCause {
Transparency,
UnembeddableFont,
}Expand description
Why a page had to be rasterized rather than repaired.
A separate enum rather than a string on Compromise::PageRasterized,
because the two causes are acted on differently: a caller converting to
A-1b who sees RasterCause::Transparency can reasonably retry at A-2b
and keep the vectors, and a program should be able to notice that without
matching on prose.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Transparency
The page uses transparency and the level forbids it. A-1b only: A-2b permits transparency, so this cause cannot arise there.
UnembeddableFont
The page draws with a font whose program is not available and which could not be substituted.
Trait Implementations§
Source§impl Clone for RasterCause
impl Clone for RasterCause
impl Copy for RasterCause
Source§impl Debug for RasterCause
impl Debug for RasterCause
Source§impl Display for RasterCause
impl Display for RasterCause
impl Eq for RasterCause
Source§impl Hash for RasterCause
impl Hash for RasterCause
Source§impl Ord for RasterCause
impl Ord for RasterCause
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for RasterCause
impl PartialEq for RasterCause
Source§impl PartialOrd for RasterCause
impl PartialOrd for RasterCause
impl StructuralPartialEq for RasterCause
Auto Trait Implementations§
impl Freeze for RasterCause
impl RefUnwindSafe for RasterCause
impl Send for RasterCause
impl Sync for RasterCause
impl Unpin for RasterCause
impl UnsafeUnpin for RasterCause
impl UnwindSafe for RasterCause
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