#[non_exhaustive]pub struct Sector {
pub series: usize,
pub index: usize,
pub center: Point,
pub inner: f32,
pub outer: f32,
pub from: f32,
pub to: f32,
pub color: Color,
}Expand description
A slice of a circle or of a ring, for telling what is under the pointer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.series: usizeWhich series.
index: usizeWhich category.
center: PointThe center of the circle.
inner: f32Where the slice starts, from the center.
outer: f32Where the slice ends, from the center.
from: f32Its first angle, in radians clockwise from the right.
to: f32Its last angle.
color: ColorIts color.
Trait Implementations§
impl Copy for Sector
impl StructuralPartialEq for Sector
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnsafeUnpin for Sector
impl UnwindSafe for Sector
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