pub struct Line {
pub x0: f64,
pub top: f64,
pub x1: f64,
pub bottom: f64,
pub line_width: f64,
pub stroke_color: Color,
pub orientation: Orientation,
}Expand description
A line segment 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_color: ColorStroking color.
orientation: OrientationLine orientation classification.
Trait Implementations§
impl StructuralPartialEq for Line
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnsafeUnpin for Line
impl UnwindSafe for Line
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