pub struct PieConfig {
pub inner_radius: f32,
pub start_angle: f32,
pub labels: bool,
pub percentages: bool,
pub total: bool,
}Expand description
Layout of pie and donut charts.
Fields§
§inner_radius: f32Inner radius as a fraction of the outer radius, 0 for a pie.
start_angle: f32Where the first slice starts, in radians; -π/2 is 12 o’clock.
labels: boolDraw the value or percentage on slices with room for it.
percentages: boolShow percentages instead of raw values.
total: boolWrite the total in the middle of a donut.
Trait Implementations§
impl Copy for PieConfig
Source§impl<'de> Deserialize<'de> for PieConfig
Available on crate feature serde only.
impl<'de> Deserialize<'de> for PieConfig
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
impl StructuralPartialEq for PieConfig
Auto Trait Implementations§
impl Forget for PieConfig
impl Freeze for PieConfig
impl Move for PieConfig
impl RefUnwindSafe for PieConfig
impl Send for PieConfig
impl Sync for PieConfig
impl Unpin for PieConfig
impl UnsafeUnpin for PieConfig
impl UnwindSafe for PieConfig
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