[−][src]Struct progressing::BernoulliBar
A progressbar counting successes (e.g. 42 out of 60) and respective attempts (e.g. 130).
Mini-Example
use progressing::Bar; /// Bernoulli-Bar counting successes (42 / 60) and attempts (# 130) /// [============>-----] (42 / 60 # 130) fn main() -> Result<(), String> { println!("Bernoulli-Bar counting successes (42 / 60) and attempts (# 130)"); let mut progressbar = progressing::BernoulliBar::from_goal(60); progressbar.set_bar_len(20); progressbar.set((42, 130)).reprintln() }
Methods
impl BernoulliBar[src]
pub fn from_goal(n: u32) -> BernoulliBar[src]
pub fn start(&self) -> u32[src]
pub fn end(&self) -> u32[src]
Trait Implementations
impl Bar for BernoulliBar[src]
type Progress = BernoulliProgress
fn bar_len(&self) -> usize[src]
fn set_bar_len(&mut self, new_bar_len: usize)[src]
fn progress(&self) -> BernoulliProgress[src]
fn set<P: Into<BernoulliProgress>>(&mut self, outcome: P) -> &mut Self[src]
fn add<P: Into<BernoulliProgress>>(&mut self, outcome: P) -> &mut Self[src]
fn display(&self) -> String[src]
fn write_to_stdout<S: Into<String>>(&self, msg: S) -> Result<(), String>[src]
fn print(&self) -> Result<(), String>[src]
fn println(&self) -> Result<(), String>[src]
fn reprint(&self) -> Result<(), String>[src]
fn reprintln(&self) -> Result<(), String>[src]
impl Debug for BernoulliBar[src]
impl Default for BernoulliBar[src]
impl Display for BernoulliBar[src]
Auto Trait Implementations
impl RefUnwindSafe for BernoulliBar
impl Send for BernoulliBar
impl Sync for BernoulliBar
impl Unpin for BernoulliBar
impl UnwindSafe for BernoulliBar
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,