Trait smart_read::ReadLine
source · pub trait ReadLine: Sized {
type Output;
// Required method
fn try_read_line(
&self,
prompt: Option<String>,
default: Option<Self::Output>
) -> BoxResult<Self::Output>;
// Provided method
fn read_line(
&self,
prompt: Option<String>,
default: Option<Self::Output>
) -> Self::Output { ... }
}Expand description
This is what powers the whole crate. Any struct that implements this can be passed to read!(), try_read!(), prompt!(), and try_prompt!()
Required Associated Types§
Required Methods§
fn try_read_line( &self, prompt: Option<String>, default: Option<Self::Output> ) -> BoxResult<Self::Output>
Provided Methods§
Object Safety§
This trait is not object safe.