pub trait TryRead {
type Output;
type Default;
// Required method
fn try_read_line(
self,
prompt: Option<String>,
default: Option<Self::Default>,
) -> BoxResult<Self::Output>;
}Expand description
This is what powers the whole crate. Any type that implements this can be used with the macros
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".