fn with_prefix<S>(mut self, prefix: S) -> Self
    where
        S: Into<String>,
    {
        self.get_progress().config.prefix = prefix.into();
        self
    }
/// Change the text displayed in front of progress informations.
///
/// # Example
///
/// ```
/// use prog_rs::prelude::*;
///
/// for i in (0..1000)
///     .progress()
///     .with_prefix("Computing something ...")
/// {
///     do_something(i);
/// }
Change the text displayed in front of progress informations.
Change the text displayed in front of progress informations .
fn with_prefix<S>(mut self, prefix: S) -> Self
    where
        S: Into<String>,
    {
        self.get_progress().config.prefix = prefix.into();
        self
    }
fn with_prefix < S > ( mut self , prefix : S ) -> Self where S : Into < String > , { self . get_progress ( ) . config . prefix = prefix . into ( ) ; self }
Change the text displayed in front of progress informations.
Change the text displayed in front of progress informations .
mut self
prefix
S
example


for i in (0..1000)
.progress()
.with_prefix("Computing something ...")
{
do_something(i);
}
for i in ( 0 .. 1000 ) . progress () . with_prefix ( " Computing something ... " ) { do_something ( i ) ; }