pub struct ChartLabel {
pub text: String,
pub rect: Rect,
pub align: LabelAlign,
pub size: f32,
pub bold: bool,
pub color: Color,
}Expand description
Text a chart prints.
Fields§
§text: StringThe text.
rect: RectThe box it sits in, vertically centered.
align: LabelAlignHow it sits in the box.
size: f32Font size.
bold: boolBold weight.
color: ColorColor.
Trait Implementations§
Source§impl Clone for ChartLabel
impl Clone for ChartLabel
Source§fn clone(&self) -> ChartLabel
fn clone(&self) -> ChartLabel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChartLabel
impl Debug for ChartLabel
Source§impl PartialEq for ChartLabel
impl PartialEq for ChartLabel
impl StructuralPartialEq for ChartLabel
Auto Trait Implementations§
impl Freeze for ChartLabel
impl RefUnwindSafe for ChartLabel
impl Send for ChartLabel
impl Sync for ChartLabel
impl Unpin for ChartLabel
impl UnsafeUnpin for ChartLabel
impl UnwindSafe for ChartLabel
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