#[non_exhaustive]pub enum Loc {
Best,
UpperRight,
UpperLeft,
LowerLeft,
LowerRight,
Right,
CenterLeft,
CenterRight,
LowerCenter,
UpperCenter,
Center,
}Expand description
Legend location relative to the axes area.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Best
Automatically choose the location that overlaps the fewest data points.
UpperRight
Upper-right corner.
UpperLeft
Upper-left corner.
LowerLeft
Lower-left corner.
LowerRight
Lower-right corner.
Right
Centered on the right edge.
CenterLeft
Centered on the left edge.
CenterRight
Centered on the right edge (alias kept for symmetry).
LowerCenter
Centered on the bottom edge.
UpperCenter
Centered on the top edge.
Center
Dead center of the axes area.
Trait Implementations§
impl Copy for Loc
impl Eq for Loc
impl StructuralPartialEq for Loc
Auto Trait Implementations§
impl Freeze for Loc
impl RefUnwindSafe for Loc
impl Send for Loc
impl Sync for Loc
impl Unpin for Loc
impl UnsafeUnpin for Loc
impl UnwindSafe for Loc
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