pub struct DualCoordChartState<CT1: CoordTranslate, CT2: CoordTranslate> { /* private fields */ }Expand description
The chart state for a dual coord chart, see the detailed description for ChartState for more
information about the purpose of a chart state
Implementations§
Source§impl<CT1: CoordTranslate, CT2: CoordTranslate> DualCoordChartState<CT1, CT2>
impl<CT1: CoordTranslate, CT2: CoordTranslate> DualCoordChartState<CT1, CT2>
Sourcepub fn restore<'a, DB: DrawingBackend + 'a>(
self,
area: &DrawingArea<DB, Shift>,
) -> DualCoordChartContext<'a, DB, CT1, CT2>
pub fn restore<'a, DB: DrawingBackend + 'a>( self, area: &DrawingArea<DB, Shift>, ) -> DualCoordChartContext<'a, DB, CT1, CT2>
Restore the chart state on the given drawing area
Trait Implementations§
Source§impl<'a, 'b, DB: DrawingBackend, CT1: CoordTranslate + Clone, CT2: CoordTranslate + Clone> From<&'b DualCoordChartContext<'a, DB, CT1, CT2>> for DualCoordChartState<CT1, CT2>
impl<'a, 'b, DB: DrawingBackend, CT1: CoordTranslate + Clone, CT2: CoordTranslate + Clone> From<&'b DualCoordChartContext<'a, DB, CT1, CT2>> for DualCoordChartState<CT1, CT2>
Source§fn from(
chart: &'b DualCoordChartContext<'a, DB, CT1, CT2>,
) -> DualCoordChartState<CT1, CT2>
fn from( chart: &'b DualCoordChartContext<'a, DB, CT1, CT2>, ) -> DualCoordChartState<CT1, CT2>
Converts to this type from the input type.
Source§impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> From<DualCoordChartContext<'a, DB, CT1, CT2>> for DualCoordChartState<CT1, CT2>
impl<'a, DB: DrawingBackend, CT1: CoordTranslate, CT2: CoordTranslate> From<DualCoordChartContext<'a, DB, CT1, CT2>> for DualCoordChartState<CT1, CT2>
Source§fn from(
chart: DualCoordChartContext<'a, DB, CT1, CT2>,
) -> DualCoordChartState<CT1, CT2>
fn from( chart: DualCoordChartContext<'a, DB, CT1, CT2>, ) -> DualCoordChartState<CT1, CT2>
Converts to this type from the input type.
Auto Trait Implementations§
impl<CT1, CT2> Freeze for DualCoordChartState<CT1, CT2>
impl<CT1, CT2> RefUnwindSafe for DualCoordChartState<CT1, CT2>where
CT1: RefUnwindSafe,
CT2: RefUnwindSafe,
impl<CT1, CT2> Send for DualCoordChartState<CT1, CT2>
impl<CT1, CT2> Sync for DualCoordChartState<CT1, CT2>
impl<CT1, CT2> Unpin for DualCoordChartState<CT1, CT2>
impl<CT1, CT2> UnwindSafe for DualCoordChartState<CT1, CT2>where
CT1: UnwindSafe,
CT2: UnwindSafe,
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<Swp, Dwp, T>,
Convert the source color to the destination color using the specified
method
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default
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
Source§impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
impl<T, U> ConvertInto<U> for Twhere
U: ConvertFrom<T>,
Source§fn convert_into(self) -> U
fn convert_into(self) -> U
Convert into T with values clamped to the color defined bounds Read more
Source§fn convert_unclamped_into(self) -> U
fn convert_unclamped_into(self) -> U
Convert into T. The resulting color might be invalid in its color space Read more
Source§fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
fn try_convert_into(self) -> Result<U, OutOfBounds<U>>
Convert into T, returning ok if the color is inside of its defined range,
otherwise an
OutOfBounds error is returned which contains the unclamped color. Read more