pub enum LegendPosition {
Top,
TopRight,
TopLeft,
Left,
Right,
Bottom,
BottomRight,
BottomLeft,
}Expand description
Allow users to specify the position of a legend in a Chart
Variants§
Top
Legend is centered on top
TopRight
Legend is in the top-right corner. This is the default.
TopLeft
Legend is in the top-left corner
Left
Legend is centered on the left
Right
Legend is centered on the right
Bottom
Legend is centered on the bottom
BottomRight
Legend is in the bottom-right corner
BottomLeft
Legend is in the bottom-left corner
Trait Implementations§
Source§impl Clone for LegendPosition
impl Clone for LegendPosition
Source§fn clone(&self) -> LegendPosition
fn clone(&self) -> LegendPosition
Returns a duplicate 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 Debug for LegendPosition
impl Debug for LegendPosition
Source§impl Default for LegendPosition
impl Default for LegendPosition
Source§fn default() -> LegendPosition
fn default() -> LegendPosition
Returns the “default value” for a type. Read more
Source§impl PartialEq for LegendPosition
impl PartialEq for LegendPosition
impl Copy for LegendPosition
impl Eq for LegendPosition
impl StructuralPartialEq for LegendPosition
Auto Trait Implementations§
impl Freeze for LegendPosition
impl RefUnwindSafe for LegendPosition
impl Send for LegendPosition
impl Sync for LegendPosition
impl Unpin for LegendPosition
impl UnwindSafe for LegendPosition
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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