pub struct Line {
pub line_style: LineStyle,
pub point_a: (f64, f64),
pub point_b: (f64, f64),
}
Expand description
A simple drawable line
Fields§
§line_style: LineStyle
the style of the line
point_a: (f64, f64)
§point_b: (f64, f64)
Implementations§
Trait Implementations§
Source§impl Drawable for Line
impl Drawable for Line
Source§fn draw_on_canvas(&self, canvas: &mut Canvas)
fn draw_on_canvas(&self, canvas: &mut Canvas)
This method is called by the draw method.
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