[][src]Struct rt_graph::ConfigBuilder

pub struct ConfigBuilder { /* fields omitted */ }

Builder for Config.

Implementations

impl ConfigBuilder[src]

pub fn base_zoom_x(self, value: f64) -> Self[src]

Maximum zoom out, in units of t per x pixel

pub fn max_zoom_x(self, value: f64) -> Self[src]

Maximum zoom in, in units of t per x pixel

pub fn graph_width(self, value: u32) -> Self[src]

Graph width in pixels

pub fn graph_height(self, value: u32) -> Self[src]

Graph height in pixels

pub fn windows_to_store(self, value: u32) -> Self[src]

How many windows width of data to store at maximum zoom out.

pub fn point_style(self, value: PointStyle) -> Self[src]

The style of point to draw

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

Builds a new Config.

Errors

If a required field has not been initialized.

impl ConfigBuilder[src]

pub fn data_source<T: DataSource + 'static>(self, ds: T) -> Self[src]

The data source for the graph.

Trait Implementations

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,