pub trait TermRead {
// Required methods
fn events(self) -> Events<Self> ⓘ
where Self: Sized;
fn keys(self) -> Keys<Self> ⓘ
where Self: Sized;
fn read_line(&mut self) -> Result<Option<String>>;
// Provided method
fn read_passwd<W: Write>(
&mut self,
writer: &mut W,
) -> Result<Option<String>> { ... }
}
Expand description
Extension to Read
trait.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.