Started 1.0 prerelease redesign.

Fortune for termprogress's current commit: Future blessing − 末吉
redesigned-interface
Avril 3 weeks ago
parent c2d875cc40
commit 87313aebb9
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -3,7 +3,7 @@ name = "termprogress"
description = "A terminal progress bar renderer with status and spinners"
license = "GPL-3.0-or-later"
# TODO: After full interface update & correction, bump version to `0.11.0` instead or a revision.
version = "0.10.0-r1"
version = "1.0.0-r0-pre"
authors = ["Avril <flanchan@cumallover.me>"]
edition = "2018"

@ -138,6 +138,57 @@ where T: Spinner + ?Sized
}
}
impl Display for std::convert::Infallible
{
#[inline] fn refresh(&self)
{
}
#[inline] fn blank(&self)
{
}
#[inline] fn println(&self, _: &str)
{
}
#[inline] fn eprintln(&self, _: &str)
{
}
#[inline] fn get_title(&self) -> &str
{
match *self {}
}
#[inline] fn set_title(&mut self, _: &str)
{
}
#[inline] fn update_dimensions(&mut self, _: usize)
{
}
}
impl ProgressBar for std::convert::Infallible
{
#[inline] fn set_progress(&mut self, _: f64)
{
}
#[inline] fn get_progress(&self) -> f64
{
match *self {}
}
}
impl Spinner for std::convert::Infallible
{
#[inline] fn bump(&mut self){}
}
#[cfg(nightly)] mod never
{
use super::*;

Loading…
Cancel
Save