pub struct Rect {
pub x0: f64,
pub top: f64,
pub x1: f64,
pub bottom: f64,
pub line_width: f64,
pub stroke: bool,
pub fill: bool,
pub stroke_color: Color,
pub fill_color: Color,
}Expand description
A rectangle extracted from a painted path.
Coordinates use pdfplumber’s top-left origin system.
Fields§
§x0: f64Left x coordinate.
top: f64Top y coordinate (distance from top of page).
x1: f64Right x coordinate.
bottom: f64Bottom y coordinate (distance from top of page).
line_width: f64Line width (stroke width from graphics state).
stroke: boolWhether the rectangle is stroked.
fill: boolWhether the rectangle is filled.
stroke_color: ColorStroking color.
fill_color: ColorFill color.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Rect
Auto Trait Implementations§
impl Freeze for Rect
impl RefUnwindSafe for Rect
impl Send for Rect
impl Sync for Rect
impl Unpin for Rect
impl UnsafeUnpin for Rect
impl UnwindSafe for Rect
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