Struct svg_fmt::LineSegment
source · pub struct LineSegment {
pub x1: f32,
pub x2: f32,
pub y1: f32,
pub y2: f32,
pub color: Color,
pub width: f32,
}
Expand description
<path d="M {x1} {y1} L {x2} {y2}" ... />
Fields§
§x1: f32
§x2: f32
§y1: f32
§y2: f32
§color: Color
§width: f32
Implementations§
Trait Implementations§
source§impl Clone for LineSegment
impl Clone for LineSegment
source§fn clone(&self) -> LineSegment
fn clone(&self) -> LineSegment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Display for LineSegment
impl Display for LineSegment
source§impl PartialEq for LineSegment
impl PartialEq for LineSegment
source§fn eq(&self, other: &LineSegment) -> bool
fn eq(&self, other: &LineSegment) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for LineSegment
impl StructuralPartialEq for LineSegment
Auto Trait Implementations§
impl RefUnwindSafe for LineSegment
impl Send for LineSegment
impl Sync for LineSegment
impl Unpin for LineSegment
impl UnwindSafe for LineSegment
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