pub fn select_or_default<R, W>(self, stream: &mut MenuStream<R, W>) -> T
    where
        R: BufRead,
        W: Write,
        T: Default,
    {
        self.optional_select(stream)
            .map(Option::unwrap_or_default)
            .unwrap_or_default()
    }
/// Prompts the selectable values to the user, and returns the value at the input index,
/// or the default index if the input is incorrect.
///
/// It prompts the selectable values once, and if the user entered a correct index,
/// it returns the value mapped to this index, otherwise, it attempts to return the value
/// mapped to the default index (see [`Selected::default`]), and if there is no default value,
/// it returns the [default](Default) implementation of `T`.
Prompts the selectable values to the user, and returns the value at the input index,
or the default index if the input is incorrect.

It prompts the selectable values once, and if the user entered a correct index,
it returns the value mapped to this index, otherwise, it attempts to return the value
mapped to the default index , and if there is no default value,
it returns the [default](Default) implementation of `T`.
Prompts the selectable values to the user and returns the value at the input index or the default index if the input is incorrect . It prompts the selectable values once and if the user entered a correct index it returns the value mapped to this index otherwise it attempts to return the value mapped to the default index and if there is no default value it returns the [ default ] ( Default ) implementation of ` T ` .
pub fn select_or_default<R, W>(self, stream: &mut MenuStream<R, W>) -> T
    where
        R: BufRead,
        W: Write,
        T: Default,
    {
        self.optional_select(stream)
            .map(Option::unwrap_or_default)
            .unwrap_or_default()
    }
pub fn select_or_default < R , W > ( self , stream : & mut MenuStream < R , W > ) -> T where R : BufRead , W : Write , T : Default , { self . optional_select ( stream ) . map ( Option :: unwrap_or_default ) . unwrap_or_default ( ) }
Prompts the selectable values to the user, and returns the value at the input index,
or the default index if the input is incorrect.
Prompts the selectable values to the user and returns the value at the input index or the default index if the input is incorrect .
self
stream
&mut MenuStream<R, W>