Skip to main content

LinuxTermiosOutputFlags

Struct LinuxTermiosOutputFlags 

Source
pub struct LinuxTermiosOutputFlags { /* private fields */ }
Available on crate feature linux only.
Expand description

๐Ÿง ๐Ÿฎ– โІ LinuxTermios output flags.


๐Ÿ“ sys/os/term/session

๐Ÿ“ฆ size_of::<LinuxTermiosOutputFlags>() == 4 bytes / 32 bits


NOTE: Some constants in this group are masked delay fields, not independent boolean flags. Prefer field-specific helpers when they exist instead of combining delay values manually.

Implementationsยง

Sourceยง

impl LinuxTermiosOutputFlags

Source

pub const NL0: Self

Newline delay type 0.

Source

pub const CR0: Self

Carriage-return delay type 0.

Source

pub const TAB0: Self

Horizontal-tab delay type 0.

Source

pub const BS0: Self

Backspace delay type 0.

Source

pub const VT0: Self

Vertical-tab delay type 0.

Source

pub const FF0: Self

Form-feed delay type 0.

Source

pub const fn from_c_uint(bits: c_uint) -> Self

Returns flags from the raw Linux c_oflag word.

Source

pub const fn as_c_uint(self) -> c_uint

Returns flags as a raw Linux c_oflag word.

Sourceยง

impl LinuxTermiosOutputFlags

Named constants

Source

pub const OPOST: Self

1 Enable implementation-defined output processing.

Source

pub const OLCUC: Self

1 Map lowercase characters to uppercase on output.

Source

pub const ONLCR: Self

1 Map NL to CR-NL on output.

Source

pub const OCRNL: Self

1 Map CR to NL on output.

Source

pub const ONOCR: Self

1 Donโ€™t output CR at column 0.

Source

pub const ONLRET: Self

1 NL performs carriage-return.

Source

pub const OFILL: Self

1 Send fill characters for a delay.

Source

pub const OFDEL: Self

1 Fill character is ASCII DEL.

Source

pub const NLDLY: Self

1 Newline delay mask.

Source

pub const NL1: Self

1 Newline delay type 1.

Source

pub const CRDLY: Self

+ Carriage-return delay mask.

Source

pub const CR1: Self

1 Carriage-return delay type 1.

Source

pub const CR2: Self

1 Carriage-return delay type 2.

Source

pub const CR3: Self

+ Carriage-return delay type 3.

Source

pub const TABDLY: Self

+ Horizontal-tab delay mask.

Source

pub const TAB1: Self

1 Horizontal-tab delay type 1.

Source

pub const TAB2: Self

1 Horizontal-tab delay type 2.

Source

pub const TAB3: Self

+ Horizontal-tab delay type 3.

Source

pub const BSDLY: Self

1 Backspace delay mask.

Source

pub const BS1: Self

1 Backspace delay type 1.

Source

pub const VTDLY: Self

1 Vertical-tab delay mask.

Source

pub const VT1: Self

1 Vertical-tab delay type 1.

Source

pub const FFDLY: Self

1 Form-feed delay mask.

Source

pub const FF1: Self

1 Form-feed delay type 1.

Source

pub const XTABS: Self

+ Expands tabs to spaces. Same value as TAB3.

Sourceยง

impl LinuxTermiosOutputFlags

Convenience methods derived from each named constant.

Source

pub const fn has_opost(self) -> bool

Returns true if OPOST is present.

Source

pub const fn contains_opost(self) -> bool

Returns true if all bits in OPOST are present.

Source

pub const fn intersects_opost(self) -> bool

Returns true if the set shares any bit with OPOST.

Source

pub const fn with_opost(self) -> Self

Returns self with OPOST inserted.

Source

pub const fn with_opost_if(self, condition: bool) -> Self

Returns self with OPOST inserted if condition is true.

Source

pub const fn without_opost(self) -> Self

Returns self with OPOST removed.

Source

pub const fn set_opost(&mut self)

Sets OPOST.

Source

pub const fn set_opost_if(&mut self, condition: bool)

Sets OPOST if condition is true.

Source

pub const fn unset_opost(&mut self)

Unsets OPOST.

Source

pub const fn has_olcuc(self) -> bool

Returns true if OLCUC is present.

Source

pub const fn contains_olcuc(self) -> bool

Returns true if all bits in OLCUC are present.

Source

pub const fn intersects_olcuc(self) -> bool

Returns true if the set shares any bit with OLCUC.

Source

pub const fn with_olcuc(self) -> Self

Returns self with OLCUC inserted.

Source

pub const fn with_olcuc_if(self, condition: bool) -> Self

Returns self with OLCUC inserted if condition is true.

Source

pub const fn without_olcuc(self) -> Self

Returns self with OLCUC removed.

Source

pub const fn set_olcuc(&mut self)

Sets OLCUC.

Source

pub const fn set_olcuc_if(&mut self, condition: bool)

Sets OLCUC if condition is true.

Source

pub const fn unset_olcuc(&mut self)

Unsets OLCUC.

Source

pub const fn has_onlcr(self) -> bool

Returns true if ONLCR is present.

Source

pub const fn contains_onlcr(self) -> bool

Returns true if all bits in ONLCR are present.

Source

pub const fn intersects_onlcr(self) -> bool

Returns true if the set shares any bit with ONLCR.

Source

pub const fn with_onlcr(self) -> Self

Returns self with ONLCR inserted.

Source

pub const fn with_onlcr_if(self, condition: bool) -> Self

Returns self with ONLCR inserted if condition is true.

Source

pub const fn without_onlcr(self) -> Self

Returns self with ONLCR removed.

Source

pub const fn set_onlcr(&mut self)

Sets ONLCR.

Source

pub const fn set_onlcr_if(&mut self, condition: bool)

Sets ONLCR if condition is true.

Source

pub const fn unset_onlcr(&mut self)

Unsets ONLCR.

Source

pub const fn has_ocrnl(self) -> bool

Returns true if OCRNL is present.

Source

pub const fn contains_ocrnl(self) -> bool

Returns true if all bits in OCRNL are present.

Source

pub const fn intersects_ocrnl(self) -> bool

Returns true if the set shares any bit with OCRNL.

Source

pub const fn with_ocrnl(self) -> Self

Returns self with OCRNL inserted.

Source

pub const fn with_ocrnl_if(self, condition: bool) -> Self

Returns self with OCRNL inserted if condition is true.

Source

pub const fn without_ocrnl(self) -> Self

Returns self with OCRNL removed.

Source

pub const fn set_ocrnl(&mut self)

Sets OCRNL.

Source

pub const fn set_ocrnl_if(&mut self, condition: bool)

Sets OCRNL if condition is true.

Source

pub const fn unset_ocrnl(&mut self)

Unsets OCRNL.

Source

pub const fn has_onocr(self) -> bool

Returns true if ONOCR is present.

Source

pub const fn contains_onocr(self) -> bool

Returns true if all bits in ONOCR are present.

Source

pub const fn intersects_onocr(self) -> bool

Returns true if the set shares any bit with ONOCR.

Source

pub const fn with_onocr(self) -> Self

Returns self with ONOCR inserted.

Source

pub const fn with_onocr_if(self, condition: bool) -> Self

Returns self with ONOCR inserted if condition is true.

Source

pub const fn without_onocr(self) -> Self

Returns self with ONOCR removed.

Source

pub const fn set_onocr(&mut self)

Sets ONOCR.

Source

pub const fn set_onocr_if(&mut self, condition: bool)

Sets ONOCR if condition is true.

Source

pub const fn unset_onocr(&mut self)

Unsets ONOCR.

Source

pub const fn has_onlret(self) -> bool

Returns true if ONLRET is present.

Source

pub const fn contains_onlret(self) -> bool

Returns true if all bits in ONLRET are present.

Source

pub const fn intersects_onlret(self) -> bool

Returns true if the set shares any bit with ONLRET.

Source

pub const fn with_onlret(self) -> Self

Returns self with ONLRET inserted.

Source

pub const fn with_onlret_if(self, condition: bool) -> Self

Returns self with ONLRET inserted if condition is true.

Source

pub const fn without_onlret(self) -> Self

Returns self with ONLRET removed.

Source

pub const fn set_onlret(&mut self)

Sets ONLRET.

Source

pub const fn set_onlret_if(&mut self, condition: bool)

Sets ONLRET if condition is true.

Source

pub const fn unset_onlret(&mut self)

Unsets ONLRET.

Source

pub const fn has_ofill(self) -> bool

Returns true if OFILL is present.

Source

pub const fn contains_ofill(self) -> bool

Returns true if all bits in OFILL are present.

Source

pub const fn intersects_ofill(self) -> bool

Returns true if the set shares any bit with OFILL.

Source

pub const fn with_ofill(self) -> Self

Returns self with OFILL inserted.

Source

pub const fn with_ofill_if(self, condition: bool) -> Self

Returns self with OFILL inserted if condition is true.

Source

pub const fn without_ofill(self) -> Self

Returns self with OFILL removed.

Source

pub const fn set_ofill(&mut self)

Sets OFILL.

Source

pub const fn set_ofill_if(&mut self, condition: bool)

Sets OFILL if condition is true.

Source

pub const fn unset_ofill(&mut self)

Unsets OFILL.

Source

pub const fn has_ofdel(self) -> bool

Returns true if OFDEL is present.

Source

pub const fn contains_ofdel(self) -> bool

Returns true if all bits in OFDEL are present.

Source

pub const fn intersects_ofdel(self) -> bool

Returns true if the set shares any bit with OFDEL.

Source

pub const fn with_ofdel(self) -> Self

Returns self with OFDEL inserted.

Source

pub const fn with_ofdel_if(self, condition: bool) -> Self

Returns self with OFDEL inserted if condition is true.

Source

pub const fn without_ofdel(self) -> Self

Returns self with OFDEL removed.

Source

pub const fn set_ofdel(&mut self)

Sets OFDEL.

Source

pub const fn set_ofdel_if(&mut self, condition: bool)

Sets OFDEL if condition is true.

Source

pub const fn unset_ofdel(&mut self)

Unsets OFDEL.

Source

pub const fn has_nldly(self) -> bool

Returns true if NLDLY is present.

Source

pub const fn contains_nldly(self) -> bool

Returns true if all bits in NLDLY are present.

Source

pub const fn intersects_nldly(self) -> bool

Returns true if the set shares any bit with NLDLY.

Source

pub const fn with_nldly(self) -> Self

Returns self with NLDLY inserted.

Source

pub const fn with_nldly_if(self, condition: bool) -> Self

Returns self with NLDLY inserted if condition is true.

Source

pub const fn without_nldly(self) -> Self

Returns self with NLDLY removed.

Source

pub const fn set_nldly(&mut self)

Sets NLDLY.

Source

pub const fn set_nldly_if(&mut self, condition: bool)

Sets NLDLY if condition is true.

Source

pub const fn unset_nldly(&mut self)

Unsets NLDLY.

Source

pub const fn has_nl1(self) -> bool

Returns true if NL1 is present.

Source

pub const fn contains_nl1(self) -> bool

Returns true if all bits in NL1 are present.

Source

pub const fn intersects_nl1(self) -> bool

Returns true if the set shares any bit with NL1.

Source

pub const fn with_nl1(self) -> Self

Returns self with NL1 inserted.

Source

pub const fn with_nl1_if(self, condition: bool) -> Self

Returns self with NL1 inserted if condition is true.

Source

pub const fn without_nl1(self) -> Self

Returns self with NL1 removed.

Source

pub const fn set_nl1(&mut self)

Sets NL1.

Source

pub const fn set_nl1_if(&mut self, condition: bool)

Sets NL1 if condition is true.

Source

pub const fn unset_nl1(&mut self)

Unsets NL1.

Source

pub const fn contains_crdly(self) -> bool

Returns true if the set contains all bits in CRDLY.

Source

pub const fn intersects_crdly(self) -> bool

Returns true if the set shares any bit with CRDLY.

Source

pub const fn with_crdly(self) -> Self

Returns self with CRDLY inserted.

Source

pub const fn with_crdly_if(self, condition: bool) -> Self

Returns self with CRDLY inserted if condition is true.

Source

pub const fn without_crdly(self) -> Self

Returns self with CRDLY removed.

Source

pub const fn set_crdly(&mut self)

Sets CRDLY.

Source

pub const fn set_crdly_if(&mut self, condition: bool)

Sets CRDLY if condition is true.

Source

pub const fn unset_crdly(&mut self)

Unsets CRDLY.

Source

pub const fn has_cr1(self) -> bool

Returns true if CR1 is present.

Source

pub const fn contains_cr1(self) -> bool

Returns true if all bits in CR1 are present.

Source

pub const fn intersects_cr1(self) -> bool

Returns true if the set shares any bit with CR1.

Source

pub const fn with_cr1(self) -> Self

Returns self with CR1 inserted.

Source

pub const fn with_cr1_if(self, condition: bool) -> Self

Returns self with CR1 inserted if condition is true.

Source

pub const fn without_cr1(self) -> Self

Returns self with CR1 removed.

Source

pub const fn set_cr1(&mut self)

Sets CR1.

Source

pub const fn set_cr1_if(&mut self, condition: bool)

Sets CR1 if condition is true.

Source

pub const fn unset_cr1(&mut self)

Unsets CR1.

Source

pub const fn has_cr2(self) -> bool

Returns true if CR2 is present.

Source

pub const fn contains_cr2(self) -> bool

Returns true if all bits in CR2 are present.

Source

pub const fn intersects_cr2(self) -> bool

Returns true if the set shares any bit with CR2.

Source

pub const fn with_cr2(self) -> Self

Returns self with CR2 inserted.

Source

pub const fn with_cr2_if(self, condition: bool) -> Self

Returns self with CR2 inserted if condition is true.

Source

pub const fn without_cr2(self) -> Self

Returns self with CR2 removed.

Source

pub const fn set_cr2(&mut self)

Sets CR2.

Source

pub const fn set_cr2_if(&mut self, condition: bool)

Sets CR2 if condition is true.

Source

pub const fn unset_cr2(&mut self)

Unsets CR2.

Source

pub const fn contains_cr3(self) -> bool

Returns true if the set contains all bits in CR3.

Source

pub const fn intersects_cr3(self) -> bool

Returns true if the set shares any bit with CR3.

Source

pub const fn with_cr3(self) -> Self

Returns self with CR3 inserted.

Source

pub const fn with_cr3_if(self, condition: bool) -> Self

Returns self with CR3 inserted if condition is true.

Source

pub const fn without_cr3(self) -> Self

Returns self with CR3 removed.

Source

pub const fn set_cr3(&mut self)

Sets CR3.

Source

pub const fn set_cr3_if(&mut self, condition: bool)

Sets CR3 if condition is true.

Source

pub const fn unset_cr3(&mut self)

Unsets CR3.

Source

pub const fn contains_tabdly(self) -> bool

Returns true if the set contains all bits in TABDLY.

Source

pub const fn intersects_tabdly(self) -> bool

Returns true if the set shares any bit with TABDLY.

Source

pub const fn with_tabdly(self) -> Self

Returns self with TABDLY inserted.

Source

pub const fn with_tabdly_if(self, condition: bool) -> Self

Returns self with TABDLY inserted if condition is true.

Source

pub const fn without_tabdly(self) -> Self

Returns self with TABDLY removed.

Source

pub const fn set_tabdly(&mut self)

Sets TABDLY.

Source

pub const fn set_tabdly_if(&mut self, condition: bool)

Sets TABDLY if condition is true.

Source

pub const fn unset_tabdly(&mut self)

Unsets TABDLY.

Source

pub const fn has_tab1(self) -> bool

Returns true if TAB1 is present.

Source

pub const fn contains_tab1(self) -> bool

Returns true if all bits in TAB1 are present.

Source

pub const fn intersects_tab1(self) -> bool

Returns true if the set shares any bit with TAB1.

Source

pub const fn with_tab1(self) -> Self

Returns self with TAB1 inserted.

Source

pub const fn with_tab1_if(self, condition: bool) -> Self

Returns self with TAB1 inserted if condition is true.

Source

pub const fn without_tab1(self) -> Self

Returns self with TAB1 removed.

Source

pub const fn set_tab1(&mut self)

Sets TAB1.

Source

pub const fn set_tab1_if(&mut self, condition: bool)

Sets TAB1 if condition is true.

Source

pub const fn unset_tab1(&mut self)

Unsets TAB1.

Source

pub const fn has_tab2(self) -> bool

Returns true if TAB2 is present.

Source

pub const fn contains_tab2(self) -> bool

Returns true if all bits in TAB2 are present.

Source

pub const fn intersects_tab2(self) -> bool

Returns true if the set shares any bit with TAB2.

Source

pub const fn with_tab2(self) -> Self

Returns self with TAB2 inserted.

Source

pub const fn with_tab2_if(self, condition: bool) -> Self

Returns self with TAB2 inserted if condition is true.

Source

pub const fn without_tab2(self) -> Self

Returns self with TAB2 removed.

Source

pub const fn set_tab2(&mut self)

Sets TAB2.

Source

pub const fn set_tab2_if(&mut self, condition: bool)

Sets TAB2 if condition is true.

Source

pub const fn unset_tab2(&mut self)

Unsets TAB2.

Source

pub const fn contains_tab3(self) -> bool

Returns true if the set contains all bits in TAB3.

Source

pub const fn intersects_tab3(self) -> bool

Returns true if the set shares any bit with TAB3.

Source

pub const fn with_tab3(self) -> Self

Returns self with TAB3 inserted.

Source

pub const fn with_tab3_if(self, condition: bool) -> Self

Returns self with TAB3 inserted if condition is true.

Source

pub const fn without_tab3(self) -> Self

Returns self with TAB3 removed.

Source

pub const fn set_tab3(&mut self)

Sets TAB3.

Source

pub const fn set_tab3_if(&mut self, condition: bool)

Sets TAB3 if condition is true.

Source

pub const fn unset_tab3(&mut self)

Unsets TAB3.

Source

pub const fn has_bsdly(self) -> bool

Returns true if BSDLY is present.

Source

pub const fn contains_bsdly(self) -> bool

Returns true if all bits in BSDLY are present.

Source

pub const fn intersects_bsdly(self) -> bool

Returns true if the set shares any bit with BSDLY.

Source

pub const fn with_bsdly(self) -> Self

Returns self with BSDLY inserted.

Source

pub const fn with_bsdly_if(self, condition: bool) -> Self

Returns self with BSDLY inserted if condition is true.

Source

pub const fn without_bsdly(self) -> Self

Returns self with BSDLY removed.

Source

pub const fn set_bsdly(&mut self)

Sets BSDLY.

Source

pub const fn set_bsdly_if(&mut self, condition: bool)

Sets BSDLY if condition is true.

Source

pub const fn unset_bsdly(&mut self)

Unsets BSDLY.

Source

pub const fn has_bs1(self) -> bool

Returns true if BS1 is present.

Source

pub const fn contains_bs1(self) -> bool

Returns true if all bits in BS1 are present.

Source

pub const fn intersects_bs1(self) -> bool

Returns true if the set shares any bit with BS1.

Source

pub const fn with_bs1(self) -> Self

Returns self with BS1 inserted.

Source

pub const fn with_bs1_if(self, condition: bool) -> Self

Returns self with BS1 inserted if condition is true.

Source

pub const fn without_bs1(self) -> Self

Returns self with BS1 removed.

Source

pub const fn set_bs1(&mut self)

Sets BS1.

Source

pub const fn set_bs1_if(&mut self, condition: bool)

Sets BS1 if condition is true.

Source

pub const fn unset_bs1(&mut self)

Unsets BS1.

Source

pub const fn has_vtdly(self) -> bool

Returns true if VTDLY is present.

Source

pub const fn contains_vtdly(self) -> bool

Returns true if all bits in VTDLY are present.

Source

pub const fn intersects_vtdly(self) -> bool

Returns true if the set shares any bit with VTDLY.

Source

pub const fn with_vtdly(self) -> Self

Returns self with VTDLY inserted.

Source

pub const fn with_vtdly_if(self, condition: bool) -> Self

Returns self with VTDLY inserted if condition is true.

Source

pub const fn without_vtdly(self) -> Self

Returns self with VTDLY removed.

Source

pub const fn set_vtdly(&mut self)

Sets VTDLY.

Source

pub const fn set_vtdly_if(&mut self, condition: bool)

Sets VTDLY if condition is true.

Source

pub const fn unset_vtdly(&mut self)

Unsets VTDLY.

Source

pub const fn has_vt1(self) -> bool

Returns true if VT1 is present.

Source

pub const fn contains_vt1(self) -> bool

Returns true if all bits in VT1 are present.

Source

pub const fn intersects_vt1(self) -> bool

Returns true if the set shares any bit with VT1.

Source

pub const fn with_vt1(self) -> Self

Returns self with VT1 inserted.

Source

pub const fn with_vt1_if(self, condition: bool) -> Self

Returns self with VT1 inserted if condition is true.

Source

pub const fn without_vt1(self) -> Self

Returns self with VT1 removed.

Source

pub const fn set_vt1(&mut self)

Sets VT1.

Source

pub const fn set_vt1_if(&mut self, condition: bool)

Sets VT1 if condition is true.

Source

pub const fn unset_vt1(&mut self)

Unsets VT1.

Source

pub const fn has_ffdly(self) -> bool

Returns true if FFDLY is present.

Source

pub const fn contains_ffdly(self) -> bool

Returns true if all bits in FFDLY are present.

Source

pub const fn intersects_ffdly(self) -> bool

Returns true if the set shares any bit with FFDLY.

Source

pub const fn with_ffdly(self) -> Self

Returns self with FFDLY inserted.

Source

pub const fn with_ffdly_if(self, condition: bool) -> Self

Returns self with FFDLY inserted if condition is true.

Source

pub const fn without_ffdly(self) -> Self

Returns self with FFDLY removed.

Source

pub const fn set_ffdly(&mut self)

Sets FFDLY.

Source

pub const fn set_ffdly_if(&mut self, condition: bool)

Sets FFDLY if condition is true.

Source

pub const fn unset_ffdly(&mut self)

Unsets FFDLY.

Source

pub const fn has_ff1(self) -> bool

Returns true if FF1 is present.

Source

pub const fn contains_ff1(self) -> bool

Returns true if all bits in FF1 are present.

Source

pub const fn intersects_ff1(self) -> bool

Returns true if the set shares any bit with FF1.

Source

pub const fn with_ff1(self) -> Self

Returns self with FF1 inserted.

Source

pub const fn with_ff1_if(self, condition: bool) -> Self

Returns self with FF1 inserted if condition is true.

Source

pub const fn without_ff1(self) -> Self

Returns self with FF1 removed.

Source

pub const fn set_ff1(&mut self)

Sets FF1.

Source

pub const fn set_ff1_if(&mut self, condition: bool)

Sets FF1 if condition is true.

Source

pub const fn unset_ff1(&mut self)

Unsets FF1.

Source

pub const fn contains_xtabs(self) -> bool

Returns true if the set contains all bits in XTABS.

Source

pub const fn intersects_xtabs(self) -> bool

Returns true if the set shares any bit with XTABS.

Source

pub const fn with_xtabs(self) -> Self

Returns self with XTABS inserted.

Source

pub const fn with_xtabs_if(self, condition: bool) -> Self

Returns self with XTABS inserted if condition is true.

Source

pub const fn without_xtabs(self) -> Self

Returns self with XTABS removed.

Source

pub const fn set_xtabs(&mut self)

Sets XTABS.

Source

pub const fn set_xtabs_if(&mut self, condition: bool)

Sets XTABS if condition is true.

Source

pub const fn unset_xtabs(&mut self)

Unsets XTABS.

Sourceยง

impl LinuxTermiosOutputFlags

Common set methods

Source

pub const fn new() -> Self

Returns an empty set.

Source

pub const fn from_bits(bits: u32) -> Self

Returns a set from raw bits.

Source

pub const fn bits(self) -> u32

Returns the raw backing bits.

Source

pub const fn all() -> Self

Returns the union of all declared sets.

Source

pub const fn is_empty(self) -> bool

Returns true if no bits are set.

Source

pub const fn is_full(self) -> bool

Returns true if all the declared bits are set.

Source

pub const fn contains(self, other: Self) -> bool

Returns true if all bits in other are also set in self.

Source

pub const fn has(self, other: Self) -> bool

An alias of contains.

Source

pub const fn with(self, other: Self) -> Self

Returns self with other inserted.

Source

pub const fn with_if(self, condition: bool, other: Self) -> Self

Returns self with other inserted if condition is true.

Source

pub const fn without(self, other: Self) -> Self

Returns self with other removed.

Source

pub const fn toggled(self, other: Self) -> Self

Returns self with other toggled.

Sourceยง

impl LinuxTermiosOutputFlags

Set operations

Source

pub const fn intersects(self, other: Self) -> bool

Returns true if self and other share any bit.

Source

pub const fn is_subset(self, other: Self) -> bool

Returns true if all bits in self are also set in other.

Source

pub const fn is_superset(self, other: Self) -> bool

Returns true if all bits in other are also set in self.

Source

pub const fn union(self, other: Self) -> Self

Returns the union of self and other.

Source

pub const fn intersection(self, other: Self) -> Self

Returns the intersection of self and other.

Source

pub const fn difference(self, other: Self) -> Self

Returns the difference of self and other.

Source

pub const fn symmetric_difference(self, other: Self) -> Self

Returns the symmetric difference of self and other.

Sourceยง

impl LinuxTermiosOutputFlags

Mutating set operations

Source

pub const fn clear(&mut self)

Clears the set.

Source

pub const fn insert(&mut self, other: Self)

Inserts all bits from other.

Source

pub const fn remove(&mut self, other: Self)

Removes all bits from other.

Source

pub const fn toggle(&mut self, other: Self)

Toggles all bits from other.

Trait Implementationsยง

Sourceยง

impl Binary for LinuxTermiosOutputFlags

Formats the set as a binary mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more
Sourceยง

impl BitAnd for LinuxTermiosOutputFlags

Sourceยง

type Output = LinuxTermiosOutputFlags

The resulting type after applying the & operator.
Sourceยง

fn bitand(self, rhs: Self) -> Self::Output

Performs the & operation. Read more
Sourceยง

impl BitAndAssign for LinuxTermiosOutputFlags

Sourceยง

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Sourceยง

impl BitOr for LinuxTermiosOutputFlags

Sourceยง

type Output = LinuxTermiosOutputFlags

The resulting type after applying the | operator.
Sourceยง

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
Sourceยง

impl BitOrAssign for LinuxTermiosOutputFlags

Sourceยง

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Sourceยง

impl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxTermiosOutputFlags

Sourceยง

const BIT_SIZE: usize = _

The bit size of this type (only the relevant data part, without padding). Read more
Sourceยง

const MIN_BYTE_SIZE: usize = _

The rounded up byte size for this type. Read more
Sourceยง

fn bit_size(&self) -> usize

Returns the bit size of this type (only the relevant data part, without padding). Read more
Sourceยง

fn min_byte_size(&self) -> usize

Returns the rounded up byte size for this type. Read more
Sourceยง

impl BitXor for LinuxTermiosOutputFlags

Sourceยง

type Output = LinuxTermiosOutputFlags

The resulting type after applying the ^ operator.
Sourceยง

fn bitxor(self, rhs: Self) -> Self::Output

Performs the ^ operation. Read more
Sourceยง

impl BitXorAssign for LinuxTermiosOutputFlags

Sourceยง

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Sourceยง

impl Clone for LinuxTermiosOutputFlags

Sourceยง

fn clone(&self) -> LinuxTermiosOutputFlags

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl ConstInit for LinuxTermiosOutputFlags

Sourceยง

const INIT: Self

Returns the compile-time โ€œinitial valueโ€ for a type.
Sourceยง

impl Copy for LinuxTermiosOutputFlags

Sourceยง

impl Debug for LinuxTermiosOutputFlags

Formats the set as a prefixed binary mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more
Sourceยง

impl DebugExt for LinuxTermiosOutputFlags

Sourceยง

type Ctx = ReprMode

The context used to guide formatting.
Sourceยง

fn fmt_with(&self, f: &mut Formatter<'_>, ctx: &Self::Ctx) -> FmtResult<()>

Formats self under the given context.
Sourceยง

fn debug_with<'a>(&'a self, ctx: &'a Self::Ctx) -> DebugWith<'a, Self>
where Self: Sized,

Wraps self for contextual debug formatting.
Sourceยง

impl Default for LinuxTermiosOutputFlags

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Display for LinuxTermiosOutputFlags

Formats the set as a prefixed binary mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more
Sourceยง

impl Eq for LinuxTermiosOutputFlags

Sourceยง

impl Hash for LinuxTermiosOutputFlags

Sourceยง

fn hash<H: Hasher>(&self, state: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 ยท Sourceยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Sourceยง

impl LowerHex for LinuxTermiosOutputFlags

Formats the set as a hexadecimal mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more
Sourceยง

impl Not for LinuxTermiosOutputFlags

Sourceยง

type Output = LinuxTermiosOutputFlags

The resulting type after applying the ! operator.
Sourceยง

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Sourceยง

impl Octal for LinuxTermiosOutputFlags

Formats the set as an octal mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more
Sourceยง

impl Ord for LinuxTermiosOutputFlags

Sourceยง

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) ยท Sourceยง

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) ยท Sourceยง

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) ยท Sourceยง

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Sourceยง

impl PartialEq for LinuxTermiosOutputFlags

Sourceยง

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) ยท Sourceยง

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Sourceยง

impl PartialOrd for LinuxTermiosOutputFlags

Sourceยง

fn partial_cmp(&self, other: &Self) -> Option<Ordering> โ“˜

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) ยท Sourceยง

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Sourceยง

impl Sub for LinuxTermiosOutputFlags

Sourceยง

type Output = LinuxTermiosOutputFlags

The resulting type after applying the - operator.
Sourceยง

fn sub(self, rhs: Self) -> Self::Output

Performs the - operation. Read more
Sourceยง

impl SubAssign for LinuxTermiosOutputFlags

Sourceยง

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Sourceยง

impl UpperHex for LinuxTermiosOutputFlags

Formats the set as a hexadecimal mask over its declared bit domain.

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> FmtResult<()>

Formats the value using the given formatter. Read more

Auto Trait Implementationsยง

Blanket Implementationsยง

Sourceยง

impl<T> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> AnyExt for T
where T: Any + ?Sized,

Sourceยง

fn type_id() -> TypeId

Returns the TypeId of Self. Read more
Sourceยง

fn type_of(&self) -> TypeId

Returns the TypeId of self. Read more
Sourceยง

fn type_name(&self) -> &'static str โ“˜

Returns the type name of self. Read more
Sourceยง

fn type_is<T: 'static>(&self) -> bool

Returns true if Self is of type T. Read more
Sourceยง

fn type_hash(&self) -> u64

Returns a deterministic hash of the TypeId of Self.
Sourceยง

fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64

Returns a deterministic hash of the TypeId of Self using a custom hasher.
Sourceยง

fn as_any_ref(&self) -> &dyn Any
where Self: Sized,

Upcasts &self as &dyn Any. Read more
Sourceยง

fn as_any_mut(&mut self) -> &mut dyn Any
where Self: Sized,

Upcasts &mut self as &mut dyn Any. Read more
Sourceยง

fn as_any_box(self: Box<Self>) -> Box<dyn Any>
where Self: Sized,

Available on crate feature alloc only.
Upcasts Box<self> as Box<dyn Any>. Read more
Sourceยง

fn downcast_ref<T: 'static>(&self) -> Option<&T> โ“˜

Available on crate feature unsafe_layout and non-crate feature safe_code only.
Returns some shared reference to the inner value if it is of type T. Read more
Sourceยง

fn downcast_mut<T: 'static>(&mut self) -> Option<&mut T> โ“˜

Available on crate feature unsafe_layout and non-crate feature safe_code only.
Returns some exclusive reference to the inner value if it is of type T. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> ByteSized for T

Sourceยง

const BYTE_ALIGN: usize = _

The alignment of this type in bytes.
Sourceยง

const BYTE_SIZE: usize = _

The size of this type in bytes.
Sourceยง

fn byte_align(&self) -> usize

Returns the alignment of this type in bytes.
Sourceยง

fn byte_size(&self) -> usize

Returns the size of this type in bytes. Read more
Sourceยง

fn ptr_size_ratio(&self) -> [usize; 2]

Returns the size ratio between Ptr::BYTES and BYTE_SIZE. Read more
Sourceยง

impl<T> CloneToUninit for T
where T: Clone,

Sourceยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Sourceยง

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Sourceยง

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T> Hook for T

Sourceยง

fn hook<F>(self, f: F) -> Self
where F: FnOnce(&mut Self),

Hooks a mutation step into the value and returns it. Read more
Sourceยง

fn tap<F>(self, f: F) -> Self
where F: FnOnce(&Self),

Taps into the value for observation and returns it unchanged. Read more
Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Sourceยง

impl<T> MemExt for T
where T: ?Sized,

Sourceยง

const NEEDS_DROP: bool = _

Know whether dropping values of this type matters, in compile-time.
Sourceยง

fn mem_align_of<T>() -> usize

Returns the minimum alignment of the type in bytes. Read more
Sourceยง

fn mem_align_of_val(&self) -> usize

Returns the alignment of the pointed-to value in bytes. Read more
Sourceยง

fn mem_size_of<T>() -> usize

Returns the size of a type in bytes. Read more
Sourceยง

fn mem_size_of_val(&self) -> usize

Returns the size of the pointed-to value in bytes. Read more
Sourceยง

fn mem_copy(&self) -> Self
where Self: Copy,

Bitwise-copies a value. Read more
Sourceยง

fn mem_needs_drop(&self) -> bool

Returns true if dropping values of this type matters. Read more
Sourceยง

fn mem_drop(self)
where Self: Sized,

Drops self by running its destructor. Read more
Sourceยง

fn mem_forget(self)
where Self: Sized,

Forgets about self without running its destructor. Read more
Sourceยง

fn mem_replace(&mut self, other: Self) -> Self
where Self: Sized,

Replaces self with other, returning the previous value of self. Read more
Sourceยง

fn mem_take(&mut self) -> Self
where Self: Default,

Replaces self with its default value, returning the previous value of self. Read more
Sourceยง

fn mem_swap(&mut self, other: &mut Self)
where Self: Sized,

Swaps the value of self and other without deinitializing either one. Read more
Sourceยง

unsafe fn mem_zeroed<T>() -> T

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Sourceยง

unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst

Available on crate feature unsafe_layout only.
Returns the value of type T represented by the all-zero byte-pattern. Read more
Sourceยง

fn mem_as_bytes(&self) -> &[u8] โ“˜
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &[u8]. Read more
Sourceยง

fn mem_as_bytes_mut(&mut self) -> &mut [u8] โ“˜
where Self: Sync + Unpin,

Available on crate feature unsafe_slice only.
View a Sync + Unpin self as &mut [u8]. Read more
Sourceยง

impl<T, R> Morph<R> for T
where T: ?Sized,

Sourceยง

fn morph<F>(self, f: F) -> R
where F: FnOnce(Self) -> R, Self: Sized,

Morphs the value into a new one and returns it. Read more
Sourceยง

fn morph_ref<F>(&self, f: F) -> R
where F: FnOnce(&Self) -> R,

Morphs the value by shared reference and returns the result. Read more
Sourceยง

fn morph_mut<F>(&mut self, f: F) -> R
where F: FnOnce(&mut Self) -> R,

Morphs the value by exclusive reference and returns the result. Read more
Sourceยง

impl<T> ToOwned for T
where T: Clone,

Sourceยง

type Owned = T

The resulting type after obtaining ownership.
Sourceยง

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Sourceยง

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Sourceยง

impl<T> ToString for T
where T: Display + ?Sized,

Sourceยง

fn to_string(&self) -> String โ“˜

Converts the given value to a String. Read more
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> โ“˜

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> โ“˜

Performs the conversion.