Struct nix::sys::termios::InputFlags   [−][src]
pub struct InputFlags { /* fields omitted */ }Flags for configuring the input mode of a terminal
Implementations
impl InputFlags[src]
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 BitAnd<InputFlags> for InputFlags[src]
impl BitAnd<InputFlags> for InputFlags[src]type Output = InputFlags
The resulting type after applying the & operator.
fn bitand(self, other: InputFlags) -> InputFlags[src]
Returns the intersection between the two sets of flags.
impl BitAndAssign<InputFlags> for InputFlags[src]
impl BitAndAssign<InputFlags> for InputFlags[src]fn bitand_assign(&mut self, other: InputFlags)[src]
Disables all flags disabled in the set.
impl BitOr<InputFlags> for InputFlags[src]
impl BitOr<InputFlags> for InputFlags[src]type Output = InputFlags
The resulting type after applying the | operator.
fn bitor(self, other: InputFlags) -> InputFlags[src]
Returns the union of the two sets of flags.
impl BitOrAssign<InputFlags> for InputFlags[src]
impl BitOrAssign<InputFlags> for InputFlags[src]fn bitor_assign(&mut self, other: InputFlags)[src]
Adds the set of flags.
impl BitXor<InputFlags> for InputFlags[src]
impl BitXor<InputFlags> for InputFlags[src]type Output = InputFlags
The resulting type after applying the ^ operator.
fn bitxor(self, other: InputFlags) -> InputFlags[src]
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<InputFlags> for InputFlags[src]
impl BitXorAssign<InputFlags> for InputFlags[src]fn bitxor_assign(&mut self, other: InputFlags)[src]
Toggles the set of flags.
impl Clone for InputFlags[src]
impl Clone for InputFlags[src]fn clone(&self) -> InputFlags[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Extend<InputFlags> for InputFlags[src]
impl Extend<InputFlags> for InputFlags[src]fn extend<T: IntoIterator<Item = InputFlags>>(&mut self, iterator: T)[src]
pub fn extend_one(&mut self, item: A)[src]
pub fn extend_reserve(&mut self, additional: usize)[src]
impl FromIterator<InputFlags> for InputFlags[src]
impl FromIterator<InputFlags> for InputFlags[src]fn from_iter<T: IntoIterator<Item = InputFlags>>(iterator: T) -> InputFlags[src]
impl Hash for InputFlags[src]
impl Hash for InputFlags[src]impl Not for InputFlags[src]
impl Not for InputFlags[src]type Output = InputFlags
The resulting type after applying the ! operator.
fn not(self) -> InputFlags[src]
Returns the complement of this set of flags.
impl Ord for InputFlags[src]
impl Ord for InputFlags[src]impl PartialEq<InputFlags> for InputFlags[src]
impl PartialEq<InputFlags> for InputFlags[src]fn eq(&self, other: &InputFlags) -> bool[src]
fn ne(&self, other: &InputFlags) -> bool[src]
impl PartialOrd<InputFlags> for InputFlags[src]
impl PartialOrd<InputFlags> for InputFlags[src]impl Sub<InputFlags> for InputFlags[src]
impl Sub<InputFlags> for InputFlags[src]type Output = InputFlags
The resulting type after applying the - operator.
fn sub(self, other: InputFlags) -> InputFlags[src]
Returns the set difference of the two sets of flags.
impl SubAssign<InputFlags> for InputFlags[src]
impl SubAssign<InputFlags> for InputFlags[src]fn sub_assign(&mut self, other: InputFlags)[src]
Disables all flags enabled in the set.