pub struct LineInst {
pub from: PointPx,
pub to: PointPx,
pub stroke: StrokeStyle,
}Expand description
A straight line segment. Axis-aligned 1-px lines are placed on pixel centers
(floor(x) + 0.5).
Fields§
§from: PointPxStart point.
to: PointPxEnd point.
stroke: StrokeStyleStroke.
Trait Implementations§
impl Copy for LineInst
impl StructuralPartialEq for LineInst
Auto Trait Implementations§
impl Forget for LineInst
impl Freeze for LineInst
impl Move for LineInst
impl RefUnwindSafe for LineInst
impl Send for LineInst
impl Sync for LineInst
impl Unpin for LineInst
impl UnsafeUnpin for LineInst
impl UnwindSafe for LineInst
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