pub enum PieStyle {
Solid,
Segmented,
Hud,
Rose,
}Expand description
How a PieChart draws its slices.
Everything except PieStyle::Solid is drawn with braille dots.
§Examples
use tui_piechart::{PieChart, PieStyle};
let chart = PieChart::default().pie_style(PieStyle::Hud).center("CPU");Variants§
Solid
Solid wedges (default); honours hole, start_angle and the resolution.
Segmented
A ring built from separate cells, like a segmented readout.
Hud
Thin band between an outer tick scale and a dashed inner ring.
Rose
Equal angles, radius follows the value (a polar-area / rose chart).
Implementations§
Trait Implementations§
impl Copy for PieStyle
impl Eq for PieStyle
impl StructuralPartialEq for PieStyle
Auto Trait Implementations§
impl Freeze for PieStyle
impl RefUnwindSafe for PieStyle
impl Send for PieStyle
impl Sync for PieStyle
impl Unpin for PieStyle
impl UnsafeUnpin for PieStyle
impl UnwindSafe for PieStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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