pub struct ClassifyInput<'a> {
pub marks: Marks,
pub echo: bool,
pub quiet: bool,
pub last_line: &'a str,
}Expand description
Everything the classifier reads.
Fields§
§marks: Marks§echo: boolWhether the PTY has ECHO on. Off means a secret is being read.
quiet: boolWhether the screen has been quiet for the quiet window.
last_line: &'a strThe last non-empty line on the screen.
Trait Implementations§
Source§impl<'a> Clone for ClassifyInput<'a>
impl<'a> Clone for ClassifyInput<'a>
impl<'a> Copy for ClassifyInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for ClassifyInput<'a>
impl<'a> RefUnwindSafe for ClassifyInput<'a>
impl<'a> Send for ClassifyInput<'a>
impl<'a> Sync for ClassifyInput<'a>
impl<'a> Unpin for ClassifyInput<'a>
impl<'a> UnsafeUnpin for ClassifyInput<'a>
impl<'a> UnwindSafe for ClassifyInput<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.