[][src]Struct vega_lite_3::CompositionConfigBuilder

pub struct CompositionConfigBuilder { /* fields omitted */ }

Builder for CompositionConfig.

Methods

impl CompositionConfigBuilder[src]

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

The number of columns to include in the view composition layout.

Default value: undefined -- An infinite number of columns (a single row) will be assumed. This is equivalent to hconcat (for concat) and to using the column channel (for facet and repeat).

Note:

  1. This property is only for:
  • the general (wrappable) concat operator (not hconcat/vconcat)
  • the facet and repeat operator with one field/repetition definition (without row/column nesting)
  1. Setting the columns to 1 is equivalent to vconcat (for concat) and to using the row channel (for facet and repeat).

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

The default spacing in pixels between composed sub-views.

Default value: 20

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

Builds a new CompositionConfig.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for CompositionConfigBuilder[src]

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