[][src]Struct vega_lite_3::BaseLegendLayoutBuilder

pub struct BaseLegendLayoutBuilder { /* fields omitted */ }

Builder for BaseLegendLayout.

Methods

impl BaseLegendLayoutBuilder[src]

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

The anchor point for legend orient group layout.

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 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 build(&self) -> Result<BaseLegendLayout, String>[src]

Builds a new BaseLegendLayout.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for BaseLegendLayoutBuilder[src]

impl Default for BaseLegendLayoutBuilder[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.