Struct embedded_plots::axis::Axis[][src]

pub struct Axis<'a> { /* fields omitted */ }

Display-agnostic axis object, only contains scale range and title, can be converted to drawable axis for specific display

Implementations

impl<'a> Axis<'a>[src]

builder methods to modify axis decoration

pub fn new(range: Range<i32>) -> Axis<'a>[src]

create new axis data

pub fn set_scale(self, scale: Scale) -> Axis<'a>[src]

define how scale ticks should be drawn

pub fn set_title(self, title: &'a str) -> Axis<'a>[src]

set axis title

pub fn into_drawable_axis<C, F>(
    self,
    placement: Placement
) -> DrawableAxis<'a, C, F> where
    C: PixelColor + Default,
    F: Font,
    TextStyle<C, F>: Clone + Default
[src]

turn axis data into drawable object suitable for specific display

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.