#[non_exhaustive]pub struct Candle {
pub index: usize,
pub body: Rect,
pub wicks: [Rect; 2],
pub color: Color,
pub rising: bool,
}Expand description
What a price did in a category of a ChartKind::Candlestick.
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.index: usizeWhich category.
body: RectFrom where it opened to where it closed.
wicks: [Rect; 2]From its body up to its high, and down to its low.
color: ColorIts color.
rising: boolIt closed at or above where it opened: its body is an outline, so that this does not rest on the color alone.
Trait Implementations§
impl Copy for Candle
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnsafeUnpin for Candle
impl UnwindSafe for Candle
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