[−]Struct nix::sys::termios::InputFlags
Flags for configuring the input mode of a terminal
Methods
impl InputFlags
[−]
pub const IGNBRK: InputFlags
pub const BRKINT: InputFlags
pub const IGNPAR: InputFlags
pub const PARMRK: InputFlags
pub const INPCK: InputFlags
pub const ISTRIP: InputFlags
pub const INLCR: InputFlags
pub const IGNCR: InputFlags
pub const ICRNL: InputFlags
pub const IXON: InputFlags
pub const IXOFF: InputFlags
pub const IXANY: InputFlags
pub const IMAXBEL: InputFlags
pub const IUTF8: InputFlags
pub const fn empty() -> InputFlags
[−]
Returns an empty set of flags
pub const fn all() -> InputFlags
[−]
Returns the set containing all flags.
pub const fn bits(&self) -> tcflag_t
[−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: tcflag_t) -> Option<InputFlags>
[−]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: tcflag_t) -> InputFlags
[−]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: tcflag_t) -> InputFlags
[−]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[−]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[−]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: InputFlags) -> bool
[−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: InputFlags) -> bool
[−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: InputFlags)
[−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: InputFlags)
[−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: InputFlags)
[−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: InputFlags, value: bool)
[−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for InputFlags
[+]
impl BitAnd<InputFlags> for InputFlags
[+]
impl BitAndAssign<InputFlags> for InputFlags
[+]
impl BitOr<InputFlags> for InputFlags
[+]
impl BitOrAssign<InputFlags> for InputFlags
[+]
impl BitXor<InputFlags> for InputFlags
[+]
impl BitXorAssign<InputFlags> for InputFlags
[+]
impl Clone for InputFlags
[+]
impl Copy for InputFlags
impl Debug for InputFlags
[+]
impl Eq for InputFlags
impl Extend<InputFlags> for InputFlags
[+]
impl FromIterator<InputFlags> for InputFlags
[+]
impl Hash for InputFlags
[+]
impl LowerHex for InputFlags
[+]
impl Not for InputFlags
[+]
impl Octal for InputFlags
[+]
impl Ord for InputFlags
[+]
impl PartialEq<InputFlags> for InputFlags
[+]
impl PartialOrd<InputFlags> for InputFlags
[+]
impl StructuralEq for InputFlags
impl StructuralPartialEq for InputFlags
impl Sub<InputFlags> for InputFlags
[+]
impl SubAssign<InputFlags> for InputFlags
[+]
impl UpperHex for InputFlags
[+]
Auto Trait Implementations
impl RefUnwindSafe for InputFlags
impl Send for InputFlags
impl Sync for InputFlags
impl Unpin for InputFlags
impl UnwindSafe for InputFlags
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,