pub struct VLine { /* private fields */ }Expand description
A vertical line in a plot, filling the full width
Implementations§
source§impl 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§
source§impl PartialEq for VLine
impl PartialEq for VLine
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§
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