pub fn prompt_or_default<R, W, T>(&self, stream: &mut MenuStream<R, W>) -> T
    where
        R: BufRead,
        W: Write,
        T: FromStr + Default,
    {
        self.prompt_or_default_with(stream, &self.fmt)
    }
/// Prompts the field and returns the input value, or the default value of the type
/// if the input is incorrect.
///
/// It prompts the value once, and if the user entered a correct input, it returns the value,
/// otherwise, it attempts to return the default value (see [`Written::default_value`]
/// or [`Written::default_env`]), and if there is no default value, it returns
/// the [default](Default) implementation of `T`.
///
/// # Panics
///
/// If the default value has an incorrect type, this function will panic.
Prompts the field and returns the input value, or the default value of the type
if the input is incorrect.


Prompts the field and returns the input value or the default value of the type if the input is incorrect .
pub fn prompt_or_default<R, W, T>(&self, stream: &mut MenuStream<R, W>) -> T
    where
        R: BufRead,
        W: Write,
        T: FromStr + Default,
    {
        self.prompt_or_default_with(stream, &self.fmt)
    }
pub fn prompt_or_default < R , W , T > ( & self , stream : & mut MenuStream < R , W > ) -> T where R : BufRead , W : Write , T : FromStr + Default , { self . prompt_or_default_with ( stream , & self . fmt ) }
Prompts the field and returns the input value, or the default value of the type
if the input is incorrect.
Prompts the field and returns the input value or the default value of the type if the input is incorrect .
&self
stream
&mut MenuStream<R, W>
panics
If the default value has an incorrect type, this function will panic.
If the default value has an incorrect type this function will panic .