Enum gnuplot::LegendOption
source · pub enum LegendOption<T> {
Reverse,
Invert,
Horizontal,
Placement(AlignType, AlignType),
Title(T),
MaxRows(u32),
MaxCols(u32),
}
Expand description
Legend options
Variants§
Reverse
Puts curve samples to the left of the label
Invert
Displays legend entries in opposite order
Horizontal
Makes the legend horizontal (default is vertical)
Placement(AlignType, AlignType)
Specifies the location of the legend. The first argument specifies the horizontal placement with respect to its position, and the second argument specifies the vertical placement
Title(T)
Title of the legend
MaxRows(u32)
Specifies the maximum number of rows, when the legend is vertical
MaxCols(u32)
Specifies the maximum number of columns, when the legend is horizontal
Trait Implementations§
source§impl<T: Clone> Clone for LegendOption<T>
impl<T: Clone> Clone for LegendOption<T>
source§fn clone(&self) -> LegendOption<T>
fn clone(&self) -> LegendOption<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for LegendOption<T>
impl<T: Debug> Debug for LegendOption<T>
source§impl<T: Ord> Ord for LegendOption<T>
impl<T: Ord> Ord for LegendOption<T>
source§fn cmp(&self, other: &LegendOption<T>) -> Ordering
fn cmp(&self, other: &LegendOption<T>) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T: PartialEq> PartialEq<LegendOption<T>> for LegendOption<T>
impl<T: PartialEq> PartialEq<LegendOption<T>> for LegendOption<T>
source§fn eq(&self, other: &LegendOption<T>) -> bool
fn eq(&self, other: &LegendOption<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<LegendOption<T>> for LegendOption<T>
impl<T: PartialOrd> PartialOrd<LegendOption<T>> for LegendOption<T>
source§fn partial_cmp(&self, other: &LegendOption<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &LegendOption<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<T: Copy> Copy for LegendOption<T>
impl<T: Eq> Eq for LegendOption<T>
impl<T> StructuralEq for LegendOption<T>
impl<T> StructuralPartialEq for LegendOption<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for LegendOption<T>where T: RefUnwindSafe,
impl<T> Send for LegendOption<T>where T: Send,
impl<T> Sync for LegendOption<T>where T: Sync,
impl<T> Unpin for LegendOption<T>where T: Unpin,
impl<T> UnwindSafe for LegendOption<T>where T: UnwindSafe,
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