#[non_exhaustive]pub enum FunctionType {
Sampled,
Exponential,
Stitching,
PostScript,
}Expand description
Which of §7.10’s four types a PdfFunction is.
Exposed so a caller can report or branch on the type without matching on
private internals — the renderer wants to say “type 4 tint transform failed”
in a diagnostic, and a DeviceN optimiser may want to pre-bake a type 4 into
a lookup table while leaving a type 0 alone (which already is one).
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.
Sampled
Type 0 — sampled (§7.10.2).
Exponential
Type 2 — exponential interpolation (§7.10.3).
Stitching
Type 3 — stitching (§7.10.4).
PostScript
Type 4 — PostScript calculator (§7.10.5).
Implementations§
Trait Implementations§
Source§impl Clone for FunctionType
impl Clone for FunctionType
impl Copy for FunctionType
Source§impl Debug for FunctionType
impl Debug for FunctionType
impl Eq for FunctionType
Source§impl Hash for FunctionType
impl Hash for FunctionType
Source§impl PartialEq for FunctionType
impl PartialEq for FunctionType
impl StructuralPartialEq for FunctionType
Auto Trait Implementations§
impl Forget for FunctionType
impl Freeze for FunctionType
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnsafeUnpin for FunctionType
impl UnwindSafe for FunctionType
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