pub struct RawGuard { /* private fields */ }
Expand description
Switches the terminal on stdin
to raw mode, and restores it when this
object goes out of scope.
Switches the terminal on stdin
to raw mode and returns a guard
object. This is typically called as part of
Input::new
.
Error::SetTerminalMode
: failed to put the terminal into raw mode
Switch back from raw mode early.
Error::SetTerminalMode
: failed to return the terminal from raw
mode
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.