Struct embedded_plots::axis::DrawableAxis
source · [−]pub struct DrawableAxis<'a, C, F> where
C: PixelColor,
F: Font,
TextStyle<C, F>: Clone + Default, { /* private fields */ }Expand description
Drawable axis object, constructed for specific display
Implementations
sourceimpl<'a, C, F> DrawableAxis<'a, C, F> where
C: PixelColor + Default,
F: Font,
TextStyle<C, F>: Clone + Default,
impl<'a, C, F> DrawableAxis<'a, C, F> where
C: PixelColor + Default,
F: Font,
TextStyle<C, F>: Clone + Default,
pub fn set_color(self, val: C) -> DrawableAxis<'a, C, F>
pub fn set_text_style(self, val: TextStyle<C, F>) -> DrawableAxis<'a, C, F>
sourcepub fn set_tick_size(self, val: usize) -> DrawableAxis<'a, C, F>
pub fn set_tick_size(self, val: usize) -> DrawableAxis<'a, C, F>
set how wide tick should be drawn on the axis
sourcepub fn set_thickness(self, val: usize) -> DrawableAxis<'a, C, F>
pub fn set_thickness(self, val: usize) -> DrawableAxis<'a, C, F>
set thickness of the main line of the axis
Trait Implementations
Auto Trait Implementations
impl<'a, C, F> RefUnwindSafe for DrawableAxis<'a, C, F> where
C: RefUnwindSafe,
F: RefUnwindSafe,
impl<'a, C, F> Send for DrawableAxis<'a, C, F> where
C: Send,
F: Send,
impl<'a, C, F> Sync for DrawableAxis<'a, C, F> where
C: Sync,
F: Sync,
impl<'a, C, F> Unpin for DrawableAxis<'a, C, F> where
C: Unpin,
F: Unpin,
impl<'a, C, F> UnwindSafe for DrawableAxis<'a, C, F> where
C: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more