Enum bdrck::cli::TerminalFlag
source · pub enum TerminalFlag {
Echo,
EchoNewlines,
}
Expand description
This enum describes high-level terminal flags, in an OS-agnostic way.
Variants§
Echo
A flag indicating that typed characters should be echoed.
EchoNewlines
A flag indicating that newlines, specifically, should be echoed.
Trait Implementations§
source§impl Clone for TerminalFlag
impl Clone for TerminalFlag
source§fn clone(&self) -> TerminalFlag
fn clone(&self) -> TerminalFlag
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TerminalFlag
impl Debug for TerminalFlag
source§impl Hash for TerminalFlag
impl Hash for TerminalFlag
source§impl PartialEq<TerminalFlag> for TerminalFlag
impl PartialEq<TerminalFlag> for TerminalFlag
source§fn eq(&self, other: &TerminalFlag) -> bool
fn eq(&self, other: &TerminalFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TerminalFlag
impl Eq for TerminalFlag
impl StructuralEq for TerminalFlag
impl StructuralPartialEq for TerminalFlag
Auto Trait Implementations§
impl RefUnwindSafe for TerminalFlag
impl Send for TerminalFlag
impl Sync for TerminalFlag
impl Unpin for TerminalFlag
impl UnwindSafe for TerminalFlag
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.