pub struct PriceScaleState {
pub mode: PriceScaleMode,
pub inverted: bool,
pub margins: (f32, f32),
pub range: Option<(f64, f64)>,
}Expand description
Saved state of a price scale.
Fields§
§mode: PriceScaleModeMode.
inverted: boolWhether higher prices are drawn lower.
margins: (f32, f32)Top and bottom margins.
range: Option<(f64, f64)>The range set by the user (low, high); None while auto-scaling
(the range then follows the data and is not saved).
Trait Implementations§
Source§impl Clone for PriceScaleState
impl Clone for PriceScaleState
impl Copy for PriceScaleState
Source§impl Debug for PriceScaleState
impl Debug for PriceScaleState
Source§impl PartialEq for PriceScaleState
impl PartialEq for PriceScaleState
impl StructuralPartialEq for PriceScaleState
Auto Trait Implementations§
impl Forget for PriceScaleState
impl Freeze for PriceScaleState
impl Move for PriceScaleState
impl RefUnwindSafe for PriceScaleState
impl Send for PriceScaleState
impl Sync for PriceScaleState
impl Unpin for PriceScaleState
impl UnsafeUnpin for PriceScaleState
impl UnwindSafe for PriceScaleState
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