pub fn prompt<T: ?Sized + Display, R: BufRead, W: Write>(
    text: &T,
    stream: &mut MenuStream<R, W>,
) -> MenuResult<String> {
    show(text, stream)?;
    read_input(stream)
}
/// Shows the text using the given stream, then prompts a value to the user and
/// returns the corresponding String.
Shows the text using the given stream, then prompts a value to the user and
returns the corresponding String.
Shows the text using the given stream then prompts a value to the user and returns the corresponding String .
pub fn prompt<T: ?Sized + Display, R: BufRead, W: Write>(
    text: &T,
    stream: &mut MenuStream<R, W>,
) -> MenuResult<String> {
    show(text, stream)?;
    read_input(stream)
}
pub fn prompt < T : ? Sized + Display , R : BufRead , W : Write > ( text : & T , stream : & mut MenuStream < R , W > , ) -> MenuResult < String > { show ( text , stream ) ? ; read_input ( stream ) }
Shows the text using the given stream, then prompts a value to the user and
returns the corresponding String.
Shows the text using the given stream then prompts a value to the user and returns the corresponding String .
text
&T
stream
&mut MenuStream<R, W>