pub struct Legend { /* private fields */ }
Implementations§
Source§impl Legend
impl Legend
pub fn new() -> Self
pub fn type_<T: Into<LegendType>>(self, type_: T) -> Self
pub fn show(self, show: bool) -> Self
pub fn zlevel<F: Into<i64>>(self, zlevel: F) -> Self
pub fn z<F: Into<i64>>(self, z: F) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self
pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self
pub fn orient<O: Into<Orient>>(self, orient: O) -> Self
pub fn align<A: Into<LabelAlign>>(self, align: A) -> Self
pub fn padding<P: Into<Padding>>(self, padding: P) -> Self
pub fn item_gap<F: Into<i64>>(self, item_gap: F) -> Self
pub fn item_width<F: Into<i64>>(self, item_width: F) -> Self
pub fn item_height<F: Into<i64>>(self, item_height: F) -> Self
pub fn item_style<S: Into<ItemStyle>>(self, item_style: S) -> Self
pub fn line_style<S: Into<LineStyle>>(self, line_style: S) -> Self
pub fn text_style<S: Into<TextStyle>>(self, text_style: S) -> Self
pub fn symbol_rotate<S: Into<String>>(self, symbol_rotate: S) -> Self
pub fn formatter<S: Into<String>>(self, formatter: S) -> Self
pub fn selected_mode<S: Into<LegendSelectedMode>>( self, selected_mode: S, ) -> Self
pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self
pub fn inactive_color<C: Into<Color>>(self, inactive_color: C) -> Self
pub fn data<L: Into<LegendItem>>(self, data: Vec<L>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Legend
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnwindSafe for Legend
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> 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