pub enum BarTrack {
Rail,
Full,
Empty,
Custom(u8),
}Expand description
Controls the appearance of the dim background track behind the bouncing arc.
| Variant | Byte | Glyph | Effect |
|---|---|---|---|
Rail | 0xC0 | ⣀ | Bottom-two-dot baseline — subtle, default |
Full | 0xFF | ⣿ | Full-density track in dim_color |
Empty | 0x00 | ⠀ | Invisible — arc floats on empty space |
Custom(u8) | any | any braille | User-defined braille byte |
§Examples
use tui_spinner::{BarSpinner, BarTrack};
let rail = BarSpinner::new(0).track(BarTrack::Rail); // ⣀ default
let solid = BarSpinner::new(0).track(BarTrack::Full); // ⣿ solid track
let float = BarSpinner::new(0).track(BarTrack::Empty); // ⠀ no track
let dot = BarSpinner::new(0).track(BarTrack::Custom(0x09)); // ⠉ top-rowVariants§
Rail
⣀ (0xC0) — bottom-two-dot rail, subtle baseline (default).
Full
⣿ (0xFF) — full-density track in dim_color.
Empty
⠀ (0x00) — invisible background; the arc floats on empty space.
Custom(u8)
Any custom braille byte.
Trait Implementations§
impl Copy for BarTrack
impl Eq for BarTrack
impl StructuralPartialEq for BarTrack
Auto Trait Implementations§
impl Freeze for BarTrack
impl RefUnwindSafe for BarTrack
impl Send for BarTrack
impl Sync for BarTrack
impl Unpin for BarTrack
impl UnsafeUnpin for BarTrack
impl UnwindSafe for BarTrack
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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