Struct ChartLayoutBuilder

Source
pub struct ChartLayoutBuilder<'a, DB: DrawingBackend> { /* private fields */ }

Implementations§

Source§

impl<'a, DB: DrawingBackend> ChartLayoutBuilder<'a, DB>

Source

pub fn estimate_plot_area_size(&self) -> (u32, u32)

Estimates size of the plotting area in pixels.

Can be used to determine plotting value range to pass to build_cartesian_2d.

Source

pub fn build_cartesian_2d<X: AsRangedCoord, Y: AsRangedCoord>( &self, x_spec: X, y_spec: Y, ) -> Result<ChartContext<'_, DB, Cartesian2d<<X as AsRangedCoord>::CoordDescType, <Y as AsRangedCoord>::CoordDescType>>, DrawingAreaErrorKind<<DB as DrawingBackend>::ErrorType>>

Auto Trait Implementations§

§

impl<'a, DB> Freeze for ChartLayoutBuilder<'a, DB>

§

impl<'a, DB> !RefUnwindSafe for ChartLayoutBuilder<'a, DB>

§

impl<'a, DB> !Send for ChartLayoutBuilder<'a, DB>

§

impl<'a, DB> !Sync for ChartLayoutBuilder<'a, DB>

§

impl<'a, DB> Unpin for ChartLayoutBuilder<'a, DB>

§

impl<'a, DB> !UnwindSafe for ChartLayoutBuilder<'a, DB>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.