pub struct Legend { /* private fields */ }

Implementations§

source§

impl Legend

source

pub fn new() -> Self

source

pub fn type_<T: Into<LegendType>>(self, type_: T) -> Self

source

pub fn show(self, show: bool) -> Self

source

pub fn zlevel<F: Into<f64>>(self, zlevel: F) -> Self

source

pub fn z<F: Into<f64>>(self, z: F) -> Self

source

pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self

source

pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self

source

pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self

source

pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self

source

pub fn width<C: Into<CompositeValue>>(self, width: C) -> Self

source

pub fn height<C: Into<CompositeValue>>(self, height: C) -> Self

source

pub fn orient<O: Into<Orient>>(self, orient: O) -> Self

source

pub fn align<A: Into<LabelAlign>>(self, align: A) -> Self

source

pub fn padding<P: Into<Padding>>(self, padding: P) -> Self

source

pub fn item_gap<F: Into<f64>>(self, item_gap: F) -> Self

source

pub fn item_width<F: Into<f64>>(self, item_width: F) -> Self

source

pub fn item_height<F: Into<f64>>(self, item_height: F) -> Self

source

pub fn item_style<S: Into<ItemStyle>>(self, item_style: S) -> Self

source

pub fn line_style<S: Into<LineStyle>>(self, line_style: S) -> Self

source

pub fn text_style<S: Into<TextStyle>>(self, text_style: S) -> Self

source

pub fn symbol_rotate<S: Into<String>>(self, symbol_rotate: S) -> Self

source

pub fn formatter<S: Into<String>>(self, formatter: S) -> Self

source

pub fn selected_mode<S: Into<LegendSelectedMode>>( self, selected_mode: S ) -> Self

source

pub fn border_color<C: Into<Color>>(self, border_color: C) -> Self

source

pub fn inactive_color<C: Into<Color>>(self, inactive_color: C) -> Self

source

pub fn data<L: Into<LegendItem>>(self, data: Vec<L>) -> Self

Trait Implementations§

source§

impl Serialize for Legend

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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> Serializable for T
where T: Serialize,

source§

fn to_v8<'a>( &mut self, scope: &mut HandleScope<'a> ) -> Result<Local<'a, Value>, Error>

source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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.