pub struct Line<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Line<'a>
impl<'a> Line<'a>
Sourcepub fn width(&mut self, width: f64) -> &mut Self
pub fn width(&mut self, width: f64) -> &mut Self
[object Object] Note that this style setting can also be set per direction via increasing.line.width
and decreasing.line.width
.
default: 2
Sourcepub fn dash(&mut self, dash: &'a str) -> &mut Self
pub fn dash(&mut self, dash: &'a str) -> &mut Self
Sets the dash style of lines. Set to a dash type string (solid, dot, dash, longdash, dashdot, or longdashdot) or a dash length list in px (eg 5px,10px,2px,2px). Note that this style setting can also be set per direction via increasing.line.dash
and decreasing.line.dash
.
default: solid
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Line<'a>
impl<'a> RefUnwindSafe for Line<'a>
impl<'a> Send for Line<'a>
impl<'a> Sync for Line<'a>
impl<'a> Unpin for Line<'a>
impl<'a> UnwindSafe for Line<'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