pub struct AxisTextStyle { /* private fields */ }Expand description
Owned Plotters-compatible text attributes for independently configured axes.
Implementations§
Source§impl AxisTextStyle
impl AxisTextStyle
pub fn new<S: Into<String>>( family: S, size: u32, font_style: FontStyle, color: RGBAColor, ) -> Self
pub fn sans_serif(size: u32, font_style: FontStyle, color: RGBAColor) -> Self
pub const fn size(&self) -> u32
pub fn family(&self) -> &str
pub const fn font_style(&self) -> FontStyle
pub const fn color(&self) -> RGBAColor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AxisTextStyle
impl RefUnwindSafe for AxisTextStyle
impl Send for AxisTextStyle
impl Sync for AxisTextStyle
impl Unpin for AxisTextStyle
impl UnsafeUnpin for AxisTextStyle
impl UnwindSafe for AxisTextStyle
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