pub struct Line {
pub x1: f32,
pub y1: f32,
pub x2: f32,
pub y2: f32,
}
Expand description
Shape to draw a line from (x1, y1) to (x2, y2) with the given color
Fields§
§x1: f32
§y1: f32
§x2: f32
§y2: f32
Implementations§
Trait Implementations§
Source§impl<'a> IntoIterator for &'a Line
impl<'a> IntoIterator for &'a 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