#[non_exhaustive]pub struct CandleStyle {
pub up: Color,
pub down: Color,
pub body: f32,
}Expand description
How candlesticks are drawn: CandleStyle::new(up, down).
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.up: ColorCandles that closed at or above their open.
down: ColorCandles that closed below their open.
body: f32How much of the distance between two candles a body takes (0.1 to 1).
Implementations§
Trait Implementations§
Source§impl Clone for CandleStyle
impl Clone for CandleStyle
impl Copy for CandleStyle
Source§impl Debug for CandleStyle
impl Debug for CandleStyle
Source§impl PartialEq for CandleStyle
impl PartialEq for CandleStyle
impl StructuralPartialEq for CandleStyle
Auto Trait Implementations§
impl Freeze for CandleStyle
impl RefUnwindSafe for CandleStyle
impl Send for CandleStyle
impl Sync for CandleStyle
impl Unpin for CandleStyle
impl UnsafeUnpin for CandleStyle
impl UnwindSafe for CandleStyle
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