pub struct Ruling {
pub start: Point,
pub end: Point,
pub width: f32,
}Expand description
An axis-aligned line segment a page draws, in the same y-up user space as
TextSpan: a table border, a separator, an underline.
Endpoints are normalized (start.x <= end.x, start.y <= end.y) and
exactly axis-aligned: the near-constant coordinate is snapped to its
midpoint over the segment.
Fields§
§start: Point§end: Point§width: f32Stroke width in device space. Zero does not say how the ruling was
drawn: a hairline stroke (0 w) and a thin filled rectangle’s
centerline both carry 0.0.
Trait Implementations§
impl StructuralPartialEq for Ruling
Auto Trait Implementations§
impl Freeze for Ruling
impl RefUnwindSafe for Ruling
impl Send for Ruling
impl Sync for Ruling
impl Unpin for Ruling
impl UnsafeUnpin for Ruling
impl UnwindSafe for Ruling
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