pub struct Pie {
pub segs: Vec<PieSegment>,
pub title: String,
pub radius: f64,
}Expand description
use graplot::Pie;
// without labels: let pie = Pie::new([35., 25., 25., 15.]);
let draw = [(35., "label"), (25., "len"), (25., "labeled"), (15., "test")];
let mut pie = Pie::new(draw);
pie.set_title("title");
pie.show();Fields
segs: Vec<PieSegment>title: Stringradius: f64Implementations
Trait Implementations
sourceimpl PieSegs for Pie
impl PieSegs for Pie
fn as_pie_segs(&self) -> Vec<PieSegment>
Auto Trait Implementations
impl RefUnwindSafe for Pie
impl Send for Pie
impl Sync for Pie
impl Unpin for Pie
impl UnwindSafe for Pie
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more