glitzer/multi
Types
LineState
opaquepub opaque type LineState
SameLine
opaquepub opaque type SameLine
StyleWrapper
opaquepub opaque type StyleWrapper
Values
pub fn insert_progress_inline(
line l: SameLine,
name n: String,
progress p: progress.ProgressStyle,
) -> SameLine
Insert a ProgressStyle at the end of a given SameLine.
pub fn insert_spinner_inline(
line l: SameLine,
name n: String,
spinner s: spinner.SpinnerStyle,
) -> SameLine
Insert a SpinnerStyle at the end of a given SameLine.
pub fn new_same_line() -> SameLine
Create a new SameLine that can print multiple spinners/progress bars on
the same line.
pub fn run_line(line l: SameLine) -> SameLine
Run the line. This will print the whole line every line.refresh_rate
milliseconds. It will also automatically tick all inline spinners with
regard to their tick rate.
Example:
let multi =
multi.new_same_line()
|> multi.insert_spinner_inline("s1", spinner.pulsating_spinner())
|> multi.insert_spinner_inline(
"s2",
spinner.with_tick_rate(spinner.default_spinner(), 500),
)
|> multi.run_line
pub fn tick_by_inline(
line l: SameLine,
name n: String,
i i: Int,
) -> SameLine
Tick a spinner or progress bar with the given name by i. Does nothing if
the spinner/progress bar doesn’t exist.