pub struct Axis<'a> { /* private fields */ }
Expand description
An X or Y axis for the chart widget
Implementations§
Source§impl<'a> Axis<'a>
impl<'a> Axis<'a>
pub fn title<T>(self, title: T) -> Axis<'a>
pub fn title_style(self, style: Style) -> Axis<'a>
👎Deprecated since 0.10.0: You should use styling capabilities of
text::Spans
given as argument of the title
method to apply styling to the title.pub fn bounds(self, bounds: [f64; 2]) -> Axis<'a>
pub fn labels(self, labels: Vec<Span<'a>>) -> Axis<'a>
pub fn style(self, style: Style) -> Axis<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Axis<'a>
impl<'a> RefUnwindSafe for Axis<'a>
impl<'a> Send for Axis<'a>
impl<'a> Sync for Axis<'a>
impl<'a> Unpin for Axis<'a>
impl<'a> UnwindSafe for Axis<'a>
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