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
impl LegendPos
sourcepub const LIST: [Self; 10] = _
pub const LIST: [Self; 10] = _
Position list.
sourcepub fn to_plotter_pos(&self) -> Option<SeriesLabelPosition>
pub fn to_plotter_pos(&self) -> Option<SeriesLabelPosition>
Transform to plotters option.
Trait Implementationsยง
sourceยงimpl<'de> Deserialize<'de> for LegendPos
impl<'de> Deserialize<'de> for LegendPos
sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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
impl PartialEq for LegendPos
impl Copy for LegendPos
impl Eq for LegendPos
impl StructuralEq for LegendPos
impl StructuralPartialEq for LegendPos
Auto Trait Implementationsยง
impl RefUnwindSafe for LegendPos
impl Send for LegendPos
impl Sync for LegendPos
impl Unpin for LegendPos
impl UnwindSafe for LegendPos
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
ยงimpl<T> Pointable for T
impl<T> Pointable for T
ยงimpl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
ยงfn to_subset(&self) -> Option<SS>
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
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.