pub struct Parser { /* private fields */ }Implementations§
Source§impl Parser
impl Parser
pub fn new() -> Self
Sourcepub fn read_timeout(&mut self) -> Duration
pub fn read_timeout(&mut self) -> Duration
Suggests a timeout for the next call to read().
We need this because of the ambiguity of whether a trailing escape character in an input is starting another escape sequence or is just the result of the user literally pressing the Escape key.
Auto Trait Implementations§
impl Freeze for Parser
impl RefUnwindSafe for Parser
impl Send for Parser
impl Sync for Parser
impl Unpin for Parser
impl UnwindSafe for Parser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more