Struct nix::sys::termios::InputFlags [−][src]
Flags for configuring the input mode of a terminal
Implementations
impl InputFlags
[src][−]
pub const IGNBRK: InputFlags
[src]
pub const BRKINT: InputFlags
[src]
pub const IGNPAR: InputFlags
[src]
pub const PARMRK: InputFlags
[src]
pub const INPCK: InputFlags
[src]
pub const ISTRIP: InputFlags
[src]
pub const INLCR: InputFlags
[src]
pub const IGNCR: InputFlags
[src]
pub const ICRNL: InputFlags
[src]
pub const IXON: InputFlags
[src]
pub const IXOFF: InputFlags
[src]
pub const IXANY: InputFlags
[src]
pub const IMAXBEL: InputFlags
[src]
pub const IUTF8: InputFlags
[src]
pub const fn empty() -> InputFlags
[src][−]
Returns an empty set of flags
pub const fn all() -> InputFlags
[src][−]
Returns the set containing all flags.
pub const fn bits(&self) -> tcflag_t
[src][−]
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: tcflag_t) -> Option<InputFlags>
[src][−]
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
[src][−]
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
[src][−]
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn is_empty(&self) -> bool
[src][−]
Returns true
if no flags are currently stored.
pub const fn is_all(&self) -> bool
[src][−]
Returns true
if all flags are currently set.
pub const fn intersects(&self, other: InputFlags) -> bool
[src][−]
Returns true
if there are flags common to both self
and other
.
pub const fn contains(&self, other: InputFlags) -> bool
[src][−]
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: InputFlags)
[src][−]
Inserts the specified flags in-place.
pub fn remove(&mut self, other: InputFlags)
[src][−]
Removes the specified flags in-place.
pub fn toggle(&mut self, other: InputFlags)
[src][−]
Toggles the specified flags in-place.
pub fn set(&mut self, other: InputFlags, value: bool)
[src][−]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for InputFlags
[src][+]
impl BitAnd<InputFlags> for InputFlags
[src][+]
impl BitAndAssign<InputFlags> for InputFlags
[src][+]
impl BitOr<InputFlags> for InputFlags
[src][+]
impl BitOrAssign<InputFlags> for InputFlags
[src][+]
impl BitXor<InputFlags> for InputFlags
[src][+]
impl BitXorAssign<InputFlags> for InputFlags
[src][+]
impl Clone for InputFlags
[src][+]
impl Copy for InputFlags
[src]
impl Debug for InputFlags
[src][+]
impl Eq for InputFlags
[src]
impl Extend<InputFlags> for InputFlags
[src][+]
impl FromIterator<InputFlags> for InputFlags
[src][+]
impl Hash for InputFlags
[src][+]
impl LowerHex for InputFlags
[src][+]
impl Not for InputFlags
[src][+]
impl Octal for InputFlags
[src][+]
impl Ord for InputFlags
[src][+]
impl PartialEq<InputFlags> for InputFlags
[src][+]
impl PartialOrd<InputFlags> for InputFlags
[src][+]
impl StructuralEq for InputFlags
[src]
impl StructuralPartialEq for InputFlags
[src]
impl Sub<InputFlags> for InputFlags
[src][+]
impl SubAssign<InputFlags> for InputFlags
[src][+]
impl UpperHex for InputFlags
[src][+]
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>,