pub enum LineType {
Solid,
Dot,
Dash,
LongDash,
DashDot,
LongDashDot,
}
Expand description
An enum representing different styles of lines that can be used in plots.
The LineType
enum defines various styles of lines, such as solid, dashed, or dotted,
that can be applied to plot traces, such as lines in a line plot or borders in a bar plot.
§Variants
Solid
: A continuous, solid line with no breaks.Dot
: A line composed of dots, spaced evenly.Dash
: A dashed line with evenly spaced short dashes.LongDash
: A dashed line with longer dashes thanDash
.DashDot
: A line that alternates between a dash and a dot.LongDashDot
: A line that alternates between a long dash and a dot.
§Example Usage
use crate::LineType;
let solid_line = LineType::Solid;
let dashed_line = LineType::Dash;
let custom_line = LineType::LongDashDot;
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LineType
impl RefUnwindSafe for LineType
impl Send for LineType
impl Sync for LineType
impl Unpin for LineType
impl UnwindSafe for LineType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more