[][src]Struct vega_lite_3::LegendLayoutBuilder

pub struct LegendLayoutBuilder { /* fields omitted */ }

Builder for LegendLayout.

Methods

impl LegendLayoutBuilder[src]

pub fn anchor<VALUE: Into<TitleAnchor>>(&mut self, value: VALUE) -> &mut Self[src]

The anchor point for legend orient group layout.

pub fn bottom<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn bottom_left<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn bottom_right<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn bounds<VALUE: Into<LayoutBounds>>(&mut self, value: VALUE) -> &mut Self[src]

The bounds calculation to use for legend orient group layout.

pub fn center<VALUE: Into<BottomCenter>>(&mut self, value: VALUE) -> &mut Self[src]

A flag to center legends within a shared orient group.

pub fn direction<VALUE: Into<Direction>>(&mut self, value: VALUE) -> &mut Self[src]

The layout direction for legend orient group layout.

pub fn left<VALUE: Into<BaseLegendLayout>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn margin<VALUE: Into<Margin>>(&mut self, value: VALUE) -> &mut Self[src]

The pixel margin between legends within a orient group.

pub fn offset<VALUE: Into<Margin>>(&mut self, value: VALUE) -> &mut Self[src]

The pixel offset from the chart body for a legend orient group.

pub fn right<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn top<VALUE: Into<BaseLegendLayout>>(&mut self, value: VALUE) -> &mut Self[src]

pub fn top_left<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn top_right<VALUE: Into<BaseLegendLayout>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

pub fn build(&self) -> Result<LegendLayout, String>[src]

Builds a new LegendLayout.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for LegendLayoutBuilder[src]

impl Default for LegendLayoutBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.