pub enum Paint {
Fill(Color),
Stroke(Stroke),
FillStroke(Color, Stroke),
}Expand description
How a shape is painted.
An enum rather than two Option<Color> fields because the three states
are what the PDF paint operators actually offer, and “neither” is not one
of them: a caller who wants to paint nothing does not call the method.
Variants§
Fill(Color)
Filled only. Written as f or f*.
Stroke(Stroke)
Stroked only, at Stroke::width. Written as S.
FillStroke(Color, Stroke)
Filled and stroked, the fill first. Written as B or B*.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Paint
Auto Trait Implementations§
impl Freeze for Paint
impl RefUnwindSafe for Paint
impl Send for Paint
impl Sync for Paint
impl Unpin for Paint
impl UnsafeUnpin for Paint
impl UnwindSafe for Paint
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