#[non_exhaustive]pub struct Bar {
pub series: usize,
pub index: usize,
pub rect: Rect,
pub color: Color,
pub radii: [f32; 4],
pub gradient: Option<LinearGradient>,
}Expand description
A bar as it landed, for drawing it again over the picture.
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.
rect: RectWhere it is.
color: ColorIts color.
radii: [f32; 4]Its corners: top left, top right, bottom right, bottom left.
gradient: Option<LinearGradient>What fills it in place of its color, from its tip to its base.
Trait Implementations§
impl Copy for Bar
impl StructuralPartialEq for Bar
Auto Trait Implementations§
impl Freeze for Bar
impl RefUnwindSafe for Bar
impl Send for Bar
impl Sync for Bar
impl Unpin for Bar
impl UnsafeUnpin for Bar
impl UnwindSafe for Bar
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