Enum four_bar::plot::LegendPos

source ยท
pub enum LegendPos {
    Hide,
    UL,
    ML,
    LL,
    UM,
    MM,
    LM,
    UR,
    MR,
    LR,
    Coord(i32, i32),
}
Available on crate feature plot only.
Expand description

Legend position option.

Variantsยง

ยง

Hide

Hide Legend

ยง

UL

Upper Left

ยง

ML

Middle Left

ยง

LL

Lower Left

ยง

UM

Upper Middle

ยง

MM

Middle Middle

ยง

LM

Lower Middle

ยง

UR

Upper Right

ยง

MR

Middle Right

ยง

LR

Lower Right

ยง

Coord(i32, i32)

Coordinate

Implementationsยง

sourceยง

impl LegendPos

source

pub const LIST: [Self; 10] = _

Position list.

source

pub const fn name(&self) -> &'static str

Get the option names.

source

pub fn to_plotter_pos(&self) -> Option<SeriesLabelPosition>

Transform to plotters option.

Trait Implementationsยง

sourceยง

impl Clone for LegendPos

sourceยง

fn clone(&self) -> LegendPos

Returns a copy of the value. Read more
1.0.0 ยท sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
sourceยง

impl Debug for LegendPos

sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
sourceยง

impl Default for LegendPos

sourceยง

fn default() -> LegendPos

Returns the โ€œdefault valueโ€ for a type. Read more
sourceยง

impl<'de> Deserialize<'de> for LegendPos

sourceยง

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
sourceยง

impl PartialEq for LegendPos

sourceยง

fn eq(&self, other: &LegendPos) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 ยท sourceยง

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
sourceยง

impl Serialize for LegendPos

sourceยง

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
sourceยง

impl ValueEnum for LegendPos

sourceยง

fn value_variants<'a>() -> &'a [Self]

All possible argument values, in display order.
sourceยง

fn to_possible_value<'a>(&self) -> Option<PossibleValue>

The canonical argument value. Read more
ยง

fn from_str(input: &str, ignore_case: bool) -> Result<Self, String>

Parse an argument into Self.
sourceยง

impl Copy for LegendPos

sourceยง

impl Eq for LegendPos

sourceยง

impl StructuralEq for LegendPos

sourceยง

impl StructuralPartialEq for LegendPos

Auto Trait Implementationsยง

Blanket Implementationsยง

sourceยง

impl<T> Any for Twhere T: 'static + ?Sized,

sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
sourceยง

impl<T> Borrow<T> for Twhere T: ?Sized,

sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
sourceยง

impl<T> BorrowMut<T> for Twhere T: ?Sized,

sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
sourceยง

impl<T> From<T> for T

sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

sourceยง

impl<T, U> Into<U> for Twhere U: From<T>,

sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

ยง

impl<T> Pointable for T

ยง

const ALIGN: usize = _

The alignment of pointer.
ยง

type Init = T

The type for initializers.
ยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
ยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
ยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
ยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
sourceยง

impl<T> Same for T

ยง

type Output = T

Should always be Self
ยง

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

ยง

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
ยง

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
ยง

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
ยง

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
sourceยง

impl<T> ToOwned for Twhere T: Clone,

ยง

type Owned = T

The resulting type after obtaining ownership.
sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
sourceยง

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

ยง

type Error = Infallible

The type returned in the event of a conversion error.
sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
sourceยง

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
ยง

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

ยง

fn vzip(self) -> V

sourceยง

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,

sourceยง

impl<T> Scalar for Twhere T: 'static + Clone + PartialEq + Debug,