pub struct Line {
pub start: Point2<i16>,
pub end: Point2<i16>,
}
Expand description
A line that can be drawn on the display. The width is the same as the pen width.
Fields§
§start: Point2<i16>
Start point (coordinate) of the line
end: Point2<i16>
End point (coordinate) of the line
Implementations§
Trait Implementations§
impl Copy for Line
impl Eq for Line
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 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