pub struct GaugeConfig {
pub start_angle: f32,
pub end_angle: f32,
pub thickness: f32,
pub show_value: bool,
pub show_range: bool,
}Expand description
Layout of gauge charts.
Fields§
§start_angle: f32Start of the arc in radians.
end_angle: f32End of the arc in radians.
thickness: f32Arc thickness in points.
show_value: boolDraw the value under the center.
show_range: boolDraw the range ends.
Trait Implementations§
Source§impl Clone for GaugeConfig
impl Clone for GaugeConfig
impl Copy for GaugeConfig
Source§impl Debug for GaugeConfig
impl Debug for GaugeConfig
Source§impl Default for GaugeConfig
impl Default for GaugeConfig
Source§impl<'de> Deserialize<'de> for GaugeConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for GaugeConfig
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 GaugeConfig
impl PartialEq for GaugeConfig
Source§impl Serialize for GaugeConfig
Available on crate feature serde only.
impl Serialize for GaugeConfig
Available on crate feature
serde only.impl StructuralPartialEq for GaugeConfig
Auto Trait Implementations§
impl Forget for GaugeConfig
impl Freeze for GaugeConfig
impl Move for GaugeConfig
impl RefUnwindSafe for GaugeConfig
impl Send for GaugeConfig
impl Sync for GaugeConfig
impl Unpin for GaugeConfig
impl UnsafeUnpin for GaugeConfig
impl UnwindSafe for GaugeConfig
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