pub struct MeasurementConfig {
pub mode: MeasurementMode,
pub area_style: MeasurementAreaStyle,
pub snap_radius: f32,
pub show_labels: bool,
}Expand description
Measurement settings owned by the chart configuration.
Fields§
§mode: MeasurementModeRectangle or curve-segment area mode.
area_style: MeasurementAreaStyleWhich area the label emphasizes.
snap_radius: f32Snap radius in points.
show_labels: boolDraw measurement labels over the data.
Trait Implementations§
Source§impl Clone for MeasurementConfig
impl Clone for MeasurementConfig
impl Copy for MeasurementConfig
Source§impl Debug for MeasurementConfig
impl Debug for MeasurementConfig
Source§impl Default for MeasurementConfig
impl Default for MeasurementConfig
Source§impl<'de> Deserialize<'de> for MeasurementConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for MeasurementConfig
Available on crate feature
serde only.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 MeasurementConfig
impl PartialEq for MeasurementConfig
Source§impl Serialize for MeasurementConfig
Available on crate feature serde only.
impl Serialize for MeasurementConfig
Available on crate feature
serde only.impl StructuralPartialEq for MeasurementConfig
Auto Trait Implementations§
impl Forget for MeasurementConfig
impl Freeze for MeasurementConfig
impl Move for MeasurementConfig
impl RefUnwindSafe for MeasurementConfig
impl Send for MeasurementConfig
impl Sync for MeasurementConfig
impl Unpin for MeasurementConfig
impl UnsafeUnpin for MeasurementConfig
impl UnwindSafe for MeasurementConfig
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