pub struct Axis<'a, L>{ /* private fields */ }Expand description
An X or Y axis for the chart widget
Implementations§
Source§impl<'a, L> Axis<'a, L>
impl<'a, L> Axis<'a, L>
pub fn title(self, title: &'a str) -> Axis<'a, L>
pub fn title_style(self, style: Style) -> Axis<'a, L>
pub fn bounds(self, bounds: [f64; 2]) -> Axis<'a, L>
pub fn labels(self, labels: &'a [L]) -> Axis<'a, L>
pub fn labels_style(self, style: Style) -> Axis<'a, L>
pub fn style(self, style: Style) -> Axis<'a, L>
Trait Implementations§
Auto Trait Implementations§
impl<'a, L> Freeze for Axis<'a, L>
impl<'a, L> RefUnwindSafe for Axis<'a, L>where
L: RefUnwindSafe,
impl<'a, L> Send for Axis<'a, L>where
L: Sync,
impl<'a, L> Sync for Axis<'a, L>where
L: Sync,
impl<'a, L> Unpin for Axis<'a, L>
impl<'a, L> UnsafeUnpin for Axis<'a, L>
impl<'a, L> UnwindSafe for Axis<'a, L>where
L: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more