pub struct BarMetrics {
pub body: f32,
pub show_body: bool,
pub show_border: bool,
}Expand description
How bars are drawn at a given element step.
Fields§
§body: f32Body width in pixels: max(1, floor(step * 0.8)), made odd by subtracting 1.
show_body: boolWhether bodies are drawn (step >= 1.5); otherwise only high-low wicks.
show_border: boolWhether body borders are drawn (step >= 3).
Trait Implementations§
Source§impl Clone for BarMetrics
impl Clone for BarMetrics
impl Copy for BarMetrics
Source§impl Debug for BarMetrics
impl Debug for BarMetrics
Source§impl PartialEq for BarMetrics
impl PartialEq for BarMetrics
impl StructuralPartialEq for BarMetrics
Auto Trait Implementations§
impl Forget for BarMetrics
impl Freeze for BarMetrics
impl Move for BarMetrics
impl RefUnwindSafe for BarMetrics
impl Send for BarMetrics
impl Sync for BarMetrics
impl Unpin for BarMetrics
impl UnsafeUnpin for BarMetrics
impl UnwindSafe for BarMetrics
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