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>) -> VLine
sourcepub fn highlight(self, highlight: bool) -> VLine
pub fn highlight(self, highlight: bool) -> VLine
Highlight this line in the plot by scaling up the line.
sourcepub fn width(self, width: impl Into<f32>) -> VLine
pub fn width(self, width: impl Into<f32>) -> VLine
Stroke width. A high value means the plot thickens.
sourcepub fn color(self, color: impl Into<Color32>) -> VLine
pub fn color(self, color: impl Into<Color32>) -> VLine
Stroke color. Default is Color32::TRANSPARENT which means a color will be auto-assigned.
Trait Implementations§
source§impl PartialEq<VLine> for VLine
impl PartialEq<VLine> 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