pub struct FunctionPattern { /* private fields */ }Expand description
A shading pattern driven by an arbitrary f(x, y) → [R, G, B] closure.
The closure is boxed so it can capture ICC profiles, LUTs, or any other
per-page state from pdf_bridge. It must be Send + Sync because
Pattern is used across rayon threads.
Implementations§
Trait Implementations§
Source§impl Pattern for FunctionPattern
impl Pattern for FunctionPattern
Source§fn is_static_color(&self) -> bool
fn is_static_color(&self) -> bool
Return
true if this pattern yields the same colour at every coordinate.
When true, fill_span will be called once and the result reused across
the whole span (optimisation hint only — correctness is not affected).Auto Trait Implementations§
impl Freeze for FunctionPattern
impl !RefUnwindSafe for FunctionPattern
impl Send for FunctionPattern
impl Sync for FunctionPattern
impl Unpin for FunctionPattern
impl UnsafeUnpin for FunctionPattern
impl !UnwindSafe for FunctionPattern
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