pub struct ChartLayoutBuilder<'a, DB: DrawingBackend> { /* private fields */ }
Implementations§
Source§impl<'a, DB: DrawingBackend> ChartLayoutBuilder<'a, DB>
impl<'a, DB: DrawingBackend> ChartLayoutBuilder<'a, DB>
Sourcepub fn estimate_plot_area_size(&self) -> (u32, u32)
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
.
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more