pub struct LineDescriptor<'a> {
pub line: Line,
pub line_width: u32,
pub line_color: Color,
pub dashes: &'a [f64],
pub clip_area: Option<Area>,
}
Expand description
Describes a line to be drawn.
Fields§
§line: Line
Where to draw the line.
line_width: u32
The width of the line.
line_color: Color
The color of the line.
dashes: &'a [f64]
How the line will be dashed.
clip_area: Option<Area>
Optionally clip drawing to some area.
Trait Implementations§
Source§impl<'a> Clone for LineDescriptor<'a>
impl<'a> Clone for LineDescriptor<'a>
Source§fn clone(&self) -> LineDescriptor<'a>
fn clone(&self) -> LineDescriptor<'a>
Returns a duplicate 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<'a> Debug for LineDescriptor<'a>
impl<'a> Debug for LineDescriptor<'a>
Auto Trait Implementations§
impl<'a> Freeze for LineDescriptor<'a>
impl<'a> RefUnwindSafe for LineDescriptor<'a>
impl<'a> Send for LineDescriptor<'a>
impl<'a> Sync for LineDescriptor<'a>
impl<'a> Unpin for LineDescriptor<'a>
impl<'a> UnwindSafe for LineDescriptor<'a>
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