pub struct SeriesDisplayFormat {
pub kind: SeriesFormat,
pub precision: u8,
pub min_move: f64,
}Expand description
Saved numeric display settings for a bar series. Values and scale modes stay unchanged.
Fields§
§kind: SeriesFormatThe units and suffix to display.
precision: u8Decimal places, after abbreviation for volume.
min_move: f64Smallest movement in raw units. Labels round to its nearest multiple, with halfway values rounded away from zero; raw-price ticks use its multiples. Non-positive or non-finite values are ignored, leaving precision to determine rounding and tick spacing.
Trait Implementations§
Source§impl Clone for SeriesDisplayFormat
impl Clone for SeriesDisplayFormat
Source§fn clone(&self) -> SeriesDisplayFormat
fn clone(&self) -> SeriesDisplayFormat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SeriesDisplayFormat
Source§impl Debug for SeriesDisplayFormat
impl Debug for SeriesDisplayFormat
Source§impl Default for SeriesDisplayFormat
impl Default for SeriesDisplayFormat
Source§impl<'de> Deserialize<'de> for SeriesDisplayFormatwhere
SeriesDisplayFormat: Default,
impl<'de> Deserialize<'de> for SeriesDisplayFormatwhere
SeriesDisplayFormat: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SeriesDisplayFormat
impl PartialEq for SeriesDisplayFormat
Source§impl PriceFormatter for SeriesDisplayFormat
impl PriceFormatter for SeriesDisplayFormat
Source§fn clone_box(&self) -> Box<dyn PriceFormatter>
fn clone_box(&self) -> Box<dyn PriceFormatter>
Clone this formatter into a Box
Source§impl Serialize for SeriesDisplayFormat
impl Serialize for SeriesDisplayFormat
impl StructuralPartialEq for SeriesDisplayFormat
Auto Trait Implementations§
impl Freeze for SeriesDisplayFormat
impl RefUnwindSafe for SeriesDisplayFormat
impl Send for SeriesDisplayFormat
impl Sync for SeriesDisplayFormat
impl Unpin for SeriesDisplayFormat
impl UnsafeUnpin for SeriesDisplayFormat
impl UnwindSafe for SeriesDisplayFormat
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more