pub struct Circle {
pub color: Color,
pub radius: i64,
/* private fields */
}Expand description
Circle shape used to plot data.
A single instance of Circle is reused to plot multiple data points.
Currently it only allows integer radii, meaning that it cant plot shapes of even width. So you can plot a dot or a 3x3 “circle” or a 5x5 circle, but not a 2x2 circle.
Fields§
§color: ColorColor of plotted circle.
radius: i64The radius (almost) of the drawn circle.
The true radius is actually radius - 0.5 (e.g. radius 1 = single pixel).
TODO: Allow half-integer radii
Implementations§
Auto Trait Implementations§
impl Freeze for Circle
impl RefUnwindSafe for Circle
impl Send for Circle
impl Sync for Circle
impl Unpin for Circle
impl UnwindSafe for Circle
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