pub struct Line<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Line<'a>
impl<'a> Line<'a>
Sourcepub fn shape(&mut self, shape: Shape) -> &mut Self
pub fn shape(&mut self, shape: Shape) -> &mut Self
Determines the line shape. With spline the lines are drawn using spline interpolation. The other available values correspond to step-wise line shapes.
default: linear
Sourcepub fn smoothing(&mut self, smoothing: f64) -> &mut Self
pub fn smoothing(&mut self, smoothing: f64) -> &mut Self
Has an effect only if shape
is set to spline Sets the amount of smoothing. 0 corresponds to no smoothing (equivalent to a linear shape).
default: 1
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