pub enum Labels {
None,
Auto(usize),
Values(Vec<f64>),
Text(Vec<String>),
Markup(Vec<String>),
}Expand description
The labels along an Axis.
Variants§
None
No labels, and no axis line (as in ratatui, where an axis without labels draws neither).
Auto(usize)
About this many round values inside the bounds, each at its place.
On a Log axis: the powers of ten, with 2 and 5
times them when fewer than two powers fit.
Values(Vec<f64>)
These values, each at its place; values outside the bounds are left out.
Text(Vec<String>)
Text spread evenly along the axis, as ratatui places its labels: the first at the start, the last at the end.
Markup(Vec<String>)
Console markup spread evenly, as Text is:
"[bold]0[/]" is a bold label, as a ratatui label of styled spans
is. The markup’s styles go over the axis style.
Trait Implementations§
impl StructuralPartialEq for Labels
Auto Trait Implementations§
impl Freeze for Labels
impl RefUnwindSafe for Labels
impl Send for Labels
impl Sync for Labels
impl Unpin for Labels
impl UnsafeUnpin for Labels
impl UnwindSafe for Labels
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