pub struct VLine { /* private fields */ }
Expand description
A vertical line in a plot, filling the full width
Implementations
sourceimpl VLine
impl VLine
pub fn new(x: impl Into<f64>) -> Self
sourcepub fn highlight(self, highlight: bool) -> Self
pub fn highlight(self, highlight: bool) -> Self
Highlight this line in the plot by scaling up the line.
sourcepub fn width(self, width: impl Into<f32>) -> Self
pub fn width(self, width: impl Into<f32>) -> Self
Stroke width. A high value means the plot thickens.
sourcepub fn color(self, color: impl Into<Color32>) -> Self
pub fn color(self, color: impl Into<Color32>) -> Self
Stroke color. Default is Color32::TRANSPARENT
which means a color will be auto-assigned.
Trait Implementations
impl StructuralPartialEq for VLine
Auto Trait Implementations
impl RefUnwindSafe for VLine
impl Send for VLine
impl Sync for VLine
impl Unpin for VLine
impl UnwindSafe for VLine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more