[][src]Struct vega_lite_3::GraticuleParamsBuilder

pub struct GraticuleParamsBuilder { /* fields omitted */ }

Builder for GraticuleParams.

Methods

impl GraticuleParamsBuilder[src]

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

Sets both the major and minor extents to the same values.

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

The major extent of the graticule as a two-element array of coordinates.

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

The minor extent of the graticule as a two-element array of coordinates.

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

The precision of the graticule in degrees.

Default value: 2.5

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

Sets both the major and minor step angles to the same values.

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

The major step angles of the graticule.

Default value: [90, 360]

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

The minor step angles of the graticule.

Default value: [10, 10]

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

Builds a new GraticuleParams.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for GraticuleParamsBuilder[src]

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