pub struct LinuxTermiosOutputFlags { /* private fields */ }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
impl LinuxTermiosOutputFlags
Sourcepub const fn from_c_uint(bits: c_uint) -> Self
pub const fn from_c_uint(bits: c_uint) -> Self
Returns flags from the raw Linux c_oflag word.
Sourceยงimpl LinuxTermiosOutputFlags
Named constants
impl LinuxTermiosOutputFlags
Named constants
Sourceยงimpl LinuxTermiosOutputFlags
Convenience methods derived from each named constant.
impl LinuxTermiosOutputFlags
Convenience methods derived from each named constant.
Sourcepub const fn contains_opost(self) -> bool
pub const fn contains_opost(self) -> bool
Returns true if all bits in OPOST are present.
Sourcepub const fn intersects_opost(self) -> bool
pub const fn intersects_opost(self) -> bool
Returns true if the set shares any bit with OPOST.
Sourcepub const fn with_opost(self) -> Self
pub const fn with_opost(self) -> Self
Returns self with OPOST inserted.
Sourcepub const fn with_opost_if(self, condition: bool) -> Self
pub const fn with_opost_if(self, condition: bool) -> Self
Returns self with OPOST inserted if condition is true.
Sourcepub const fn without_opost(self) -> Self
pub const fn without_opost(self) -> Self
Returns self with OPOST removed.
Sourcepub const fn set_opost_if(&mut self, condition: bool)
pub const fn set_opost_if(&mut self, condition: bool)
Sets OPOST if condition is true.
Sourcepub const fn unset_opost(&mut self)
pub const fn unset_opost(&mut self)
Unsets OPOST.
Sourcepub const fn contains_olcuc(self) -> bool
pub const fn contains_olcuc(self) -> bool
Returns true if all bits in OLCUC are present.
Sourcepub const fn intersects_olcuc(self) -> bool
pub const fn intersects_olcuc(self) -> bool
Returns true if the set shares any bit with OLCUC.
Sourcepub const fn with_olcuc(self) -> Self
pub const fn with_olcuc(self) -> Self
Returns self with OLCUC inserted.
Sourcepub const fn with_olcuc_if(self, condition: bool) -> Self
pub const fn with_olcuc_if(self, condition: bool) -> Self
Returns self with OLCUC inserted if condition is true.
Sourcepub const fn without_olcuc(self) -> Self
pub const fn without_olcuc(self) -> Self
Returns self with OLCUC removed.
Sourcepub const fn set_olcuc_if(&mut self, condition: bool)
pub const fn set_olcuc_if(&mut self, condition: bool)
Sets OLCUC if condition is true.
Sourcepub const fn unset_olcuc(&mut self)
pub const fn unset_olcuc(&mut self)
Unsets OLCUC.
Sourcepub const fn contains_onlcr(self) -> bool
pub const fn contains_onlcr(self) -> bool
Returns true if all bits in ONLCR are present.
Sourcepub const fn intersects_onlcr(self) -> bool
pub const fn intersects_onlcr(self) -> bool
Returns true if the set shares any bit with ONLCR.
Sourcepub const fn with_onlcr(self) -> Self
pub const fn with_onlcr(self) -> Self
Returns self with ONLCR inserted.
Sourcepub const fn with_onlcr_if(self, condition: bool) -> Self
pub const fn with_onlcr_if(self, condition: bool) -> Self
Returns self with ONLCR inserted if condition is true.
Sourcepub const fn without_onlcr(self) -> Self
pub const fn without_onlcr(self) -> Self
Returns self with ONLCR removed.
Sourcepub const fn set_onlcr_if(&mut self, condition: bool)
pub const fn set_onlcr_if(&mut self, condition: bool)
Sets ONLCR if condition is true.
Sourcepub const fn unset_onlcr(&mut self)
pub const fn unset_onlcr(&mut self)
Unsets ONLCR.
Sourcepub const fn contains_ocrnl(self) -> bool
pub const fn contains_ocrnl(self) -> bool
Returns true if all bits in OCRNL are present.
Sourcepub const fn intersects_ocrnl(self) -> bool
pub const fn intersects_ocrnl(self) -> bool
Returns true if the set shares any bit with OCRNL.
Sourcepub const fn with_ocrnl(self) -> Self
pub const fn with_ocrnl(self) -> Self
Returns self with OCRNL inserted.
Sourcepub const fn with_ocrnl_if(self, condition: bool) -> Self
pub const fn with_ocrnl_if(self, condition: bool) -> Self
Returns self with OCRNL inserted if condition is true.
Sourcepub const fn without_ocrnl(self) -> Self
pub const fn without_ocrnl(self) -> Self
Returns self with OCRNL removed.
Sourcepub const fn set_ocrnl_if(&mut self, condition: bool)
pub const fn set_ocrnl_if(&mut self, condition: bool)
Sets OCRNL if condition is true.
Sourcepub const fn unset_ocrnl(&mut self)
pub const fn unset_ocrnl(&mut self)
Unsets OCRNL.
Sourcepub const fn contains_onocr(self) -> bool
pub const fn contains_onocr(self) -> bool
Returns true if all bits in ONOCR are present.
Sourcepub const fn intersects_onocr(self) -> bool
pub const fn intersects_onocr(self) -> bool
Returns true if the set shares any bit with ONOCR.
Sourcepub const fn with_onocr(self) -> Self
pub const fn with_onocr(self) -> Self
Returns self with ONOCR inserted.
Sourcepub const fn with_onocr_if(self, condition: bool) -> Self
pub const fn with_onocr_if(self, condition: bool) -> Self
Returns self with ONOCR inserted if condition is true.
Sourcepub const fn without_onocr(self) -> Self
pub const fn without_onocr(self) -> Self
Returns self with ONOCR removed.
Sourcepub const fn set_onocr_if(&mut self, condition: bool)
pub const fn set_onocr_if(&mut self, condition: bool)
Sets ONOCR if condition is true.
Sourcepub const fn unset_onocr(&mut self)
pub const fn unset_onocr(&mut self)
Unsets ONOCR.
Sourcepub const fn has_onlret(self) -> bool
pub const fn has_onlret(self) -> bool
Returns true if ONLRET is present.
Sourcepub const fn contains_onlret(self) -> bool
pub const fn contains_onlret(self) -> bool
Returns true if all bits in ONLRET are present.
Sourcepub const fn intersects_onlret(self) -> bool
pub const fn intersects_onlret(self) -> bool
Returns true if the set shares any bit with ONLRET.
Sourcepub const fn with_onlret(self) -> Self
pub const fn with_onlret(self) -> Self
Returns self with ONLRET inserted.
Sourcepub const fn with_onlret_if(self, condition: bool) -> Self
pub const fn with_onlret_if(self, condition: bool) -> Self
Returns self with ONLRET inserted if condition is true.
Sourcepub const fn without_onlret(self) -> Self
pub const fn without_onlret(self) -> Self
Returns self with ONLRET removed.
Sourcepub const fn set_onlret(&mut self)
pub const fn set_onlret(&mut self)
Sets ONLRET.
Sourcepub const fn set_onlret_if(&mut self, condition: bool)
pub const fn set_onlret_if(&mut self, condition: bool)
Sets ONLRET if condition is true.
Sourcepub const fn unset_onlret(&mut self)
pub const fn unset_onlret(&mut self)
Unsets ONLRET.
Sourcepub const fn contains_ofill(self) -> bool
pub const fn contains_ofill(self) -> bool
Returns true if all bits in OFILL are present.
Sourcepub const fn intersects_ofill(self) -> bool
pub const fn intersects_ofill(self) -> bool
Returns true if the set shares any bit with OFILL.
Sourcepub const fn with_ofill(self) -> Self
pub const fn with_ofill(self) -> Self
Returns self with OFILL inserted.
Sourcepub const fn with_ofill_if(self, condition: bool) -> Self
pub const fn with_ofill_if(self, condition: bool) -> Self
Returns self with OFILL inserted if condition is true.
Sourcepub const fn without_ofill(self) -> Self
pub const fn without_ofill(self) -> Self
Returns self with OFILL removed.
Sourcepub const fn set_ofill_if(&mut self, condition: bool)
pub const fn set_ofill_if(&mut self, condition: bool)
Sets OFILL if condition is true.
Sourcepub const fn unset_ofill(&mut self)
pub const fn unset_ofill(&mut self)
Unsets OFILL.
Sourcepub const fn contains_ofdel(self) -> bool
pub const fn contains_ofdel(self) -> bool
Returns true if all bits in OFDEL are present.
Sourcepub const fn intersects_ofdel(self) -> bool
pub const fn intersects_ofdel(self) -> bool
Returns true if the set shares any bit with OFDEL.
Sourcepub const fn with_ofdel(self) -> Self
pub const fn with_ofdel(self) -> Self
Returns self with OFDEL inserted.
Sourcepub const fn with_ofdel_if(self, condition: bool) -> Self
pub const fn with_ofdel_if(self, condition: bool) -> Self
Returns self with OFDEL inserted if condition is true.
Sourcepub const fn without_ofdel(self) -> Self
pub const fn without_ofdel(self) -> Self
Returns self with OFDEL removed.
Sourcepub const fn set_ofdel_if(&mut self, condition: bool)
pub const fn set_ofdel_if(&mut self, condition: bool)
Sets OFDEL if condition is true.
Sourcepub const fn unset_ofdel(&mut self)
pub const fn unset_ofdel(&mut self)
Unsets OFDEL.
Sourcepub const fn contains_nldly(self) -> bool
pub const fn contains_nldly(self) -> bool
Returns true if all bits in NLDLY are present.
Sourcepub const fn intersects_nldly(self) -> bool
pub const fn intersects_nldly(self) -> bool
Returns true if the set shares any bit with NLDLY.
Sourcepub const fn with_nldly(self) -> Self
pub const fn with_nldly(self) -> Self
Returns self with NLDLY inserted.
Sourcepub const fn with_nldly_if(self, condition: bool) -> Self
pub const fn with_nldly_if(self, condition: bool) -> Self
Returns self with NLDLY inserted if condition is true.
Sourcepub const fn without_nldly(self) -> Self
pub const fn without_nldly(self) -> Self
Returns self with NLDLY removed.
Sourcepub const fn set_nldly_if(&mut self, condition: bool)
pub const fn set_nldly_if(&mut self, condition: bool)
Sets NLDLY if condition is true.
Sourcepub const fn unset_nldly(&mut self)
pub const fn unset_nldly(&mut self)
Unsets NLDLY.
Sourcepub const fn contains_nl1(self) -> bool
pub const fn contains_nl1(self) -> bool
Returns true if all bits in NL1 are present.
Sourcepub const fn intersects_nl1(self) -> bool
pub const fn intersects_nl1(self) -> bool
Returns true if the set shares any bit with NL1.
Sourcepub const fn with_nl1_if(self, condition: bool) -> Self
pub const fn with_nl1_if(self, condition: bool) -> Self
Returns self with NL1 inserted if condition is true.
Sourcepub const fn without_nl1(self) -> Self
pub const fn without_nl1(self) -> Self
Returns self with NL1 removed.
Sourcepub const fn set_nl1_if(&mut self, condition: bool)
pub const fn set_nl1_if(&mut self, condition: bool)
Sets NL1 if condition is true.
Sourcepub const fn contains_crdly(self) -> bool
pub const fn contains_crdly(self) -> bool
Returns true if the set contains all bits in CRDLY.
Sourcepub const fn intersects_crdly(self) -> bool
pub const fn intersects_crdly(self) -> bool
Returns true if the set shares any bit with CRDLY.
Sourcepub const fn with_crdly(self) -> Self
pub const fn with_crdly(self) -> Self
Returns self with CRDLY inserted.
Sourcepub const fn with_crdly_if(self, condition: bool) -> Self
pub const fn with_crdly_if(self, condition: bool) -> Self
Returns self with CRDLY inserted if condition is true.
Sourcepub const fn without_crdly(self) -> Self
pub const fn without_crdly(self) -> Self
Returns self with CRDLY removed.
Sourcepub const fn set_crdly_if(&mut self, condition: bool)
pub const fn set_crdly_if(&mut self, condition: bool)
Sets CRDLY if condition is true.
Sourcepub const fn unset_crdly(&mut self)
pub const fn unset_crdly(&mut self)
Unsets CRDLY.
Sourcepub const fn contains_cr1(self) -> bool
pub const fn contains_cr1(self) -> bool
Returns true if all bits in CR1 are present.
Sourcepub const fn intersects_cr1(self) -> bool
pub const fn intersects_cr1(self) -> bool
Returns true if the set shares any bit with CR1.
Sourcepub const fn with_cr1_if(self, condition: bool) -> Self
pub const fn with_cr1_if(self, condition: bool) -> Self
Returns self with CR1 inserted if condition is true.
Sourcepub const fn without_cr1(self) -> Self
pub const fn without_cr1(self) -> Self
Returns self with CR1 removed.
Sourcepub const fn set_cr1_if(&mut self, condition: bool)
pub const fn set_cr1_if(&mut self, condition: bool)
Sets CR1 if condition is true.
Sourcepub const fn contains_cr2(self) -> bool
pub const fn contains_cr2(self) -> bool
Returns true if all bits in CR2 are present.
Sourcepub const fn intersects_cr2(self) -> bool
pub const fn intersects_cr2(self) -> bool
Returns true if the set shares any bit with CR2.
Sourcepub const fn with_cr2_if(self, condition: bool) -> Self
pub const fn with_cr2_if(self, condition: bool) -> Self
Returns self with CR2 inserted if condition is true.
Sourcepub const fn without_cr2(self) -> Self
pub const fn without_cr2(self) -> Self
Returns self with CR2 removed.
Sourcepub const fn set_cr2_if(&mut self, condition: bool)
pub const fn set_cr2_if(&mut self, condition: bool)
Sets CR2 if condition is true.
Sourcepub const fn contains_cr3(self) -> bool
pub const fn contains_cr3(self) -> bool
Returns true if the set contains all bits in CR3.
Sourcepub const fn intersects_cr3(self) -> bool
pub const fn intersects_cr3(self) -> bool
Returns true if the set shares any bit with CR3.
Sourcepub const fn with_cr3_if(self, condition: bool) -> Self
pub const fn with_cr3_if(self, condition: bool) -> Self
Returns self with CR3 inserted if condition is true.
Sourcepub const fn without_cr3(self) -> Self
pub const fn without_cr3(self) -> Self
Returns self with CR3 removed.
Sourcepub const fn set_cr3_if(&mut self, condition: bool)
pub const fn set_cr3_if(&mut self, condition: bool)
Sets CR3 if condition is true.
Sourcepub const fn contains_tabdly(self) -> bool
pub const fn contains_tabdly(self) -> bool
Returns true if the set contains all bits in TABDLY.
Sourcepub const fn intersects_tabdly(self) -> bool
pub const fn intersects_tabdly(self) -> bool
Returns true if the set shares any bit with TABDLY.
Sourcepub const fn with_tabdly(self) -> Self
pub const fn with_tabdly(self) -> Self
Returns self with TABDLY inserted.
Sourcepub const fn with_tabdly_if(self, condition: bool) -> Self
pub const fn with_tabdly_if(self, condition: bool) -> Self
Returns self with TABDLY inserted if condition is true.
Sourcepub const fn without_tabdly(self) -> Self
pub const fn without_tabdly(self) -> Self
Returns self with TABDLY removed.
Sourcepub const fn set_tabdly(&mut self)
pub const fn set_tabdly(&mut self)
Sets TABDLY.
Sourcepub const fn set_tabdly_if(&mut self, condition: bool)
pub const fn set_tabdly_if(&mut self, condition: bool)
Sets TABDLY if condition is true.
Sourcepub const fn unset_tabdly(&mut self)
pub const fn unset_tabdly(&mut self)
Unsets TABDLY.
Sourcepub const fn contains_tab1(self) -> bool
pub const fn contains_tab1(self) -> bool
Returns true if all bits in TAB1 are present.
Sourcepub const fn intersects_tab1(self) -> bool
pub const fn intersects_tab1(self) -> bool
Returns true if the set shares any bit with TAB1.
Sourcepub const fn with_tab1_if(self, condition: bool) -> Self
pub const fn with_tab1_if(self, condition: bool) -> Self
Returns self with TAB1 inserted if condition is true.
Sourcepub const fn without_tab1(self) -> Self
pub const fn without_tab1(self) -> Self
Returns self with TAB1 removed.
Sourcepub const fn set_tab1_if(&mut self, condition: bool)
pub const fn set_tab1_if(&mut self, condition: bool)
Sets TAB1 if condition is true.
Sourcepub const fn unset_tab1(&mut self)
pub const fn unset_tab1(&mut self)
Unsets TAB1.
Sourcepub const fn contains_tab2(self) -> bool
pub const fn contains_tab2(self) -> bool
Returns true if all bits in TAB2 are present.
Sourcepub const fn intersects_tab2(self) -> bool
pub const fn intersects_tab2(self) -> bool
Returns true if the set shares any bit with TAB2.
Sourcepub const fn with_tab2_if(self, condition: bool) -> Self
pub const fn with_tab2_if(self, condition: bool) -> Self
Returns self with TAB2 inserted if condition is true.
Sourcepub const fn without_tab2(self) -> Self
pub const fn without_tab2(self) -> Self
Returns self with TAB2 removed.
Sourcepub const fn set_tab2_if(&mut self, condition: bool)
pub const fn set_tab2_if(&mut self, condition: bool)
Sets TAB2 if condition is true.
Sourcepub const fn unset_tab2(&mut self)
pub const fn unset_tab2(&mut self)
Unsets TAB2.
Sourcepub const fn contains_tab3(self) -> bool
pub const fn contains_tab3(self) -> bool
Returns true if the set contains all bits in TAB3.
Sourcepub const fn intersects_tab3(self) -> bool
pub const fn intersects_tab3(self) -> bool
Returns true if the set shares any bit with TAB3.
Sourcepub const fn with_tab3_if(self, condition: bool) -> Self
pub const fn with_tab3_if(self, condition: bool) -> Self
Returns self with TAB3 inserted if condition is true.
Sourcepub const fn without_tab3(self) -> Self
pub const fn without_tab3(self) -> Self
Returns self with TAB3 removed.
Sourcepub const fn set_tab3_if(&mut self, condition: bool)
pub const fn set_tab3_if(&mut self, condition: bool)
Sets TAB3 if condition is true.
Sourcepub const fn unset_tab3(&mut self)
pub const fn unset_tab3(&mut self)
Unsets TAB3.
Sourcepub const fn contains_bsdly(self) -> bool
pub const fn contains_bsdly(self) -> bool
Returns true if all bits in BSDLY are present.
Sourcepub const fn intersects_bsdly(self) -> bool
pub const fn intersects_bsdly(self) -> bool
Returns true if the set shares any bit with BSDLY.
Sourcepub const fn with_bsdly(self) -> Self
pub const fn with_bsdly(self) -> Self
Returns self with BSDLY inserted.
Sourcepub const fn with_bsdly_if(self, condition: bool) -> Self
pub const fn with_bsdly_if(self, condition: bool) -> Self
Returns self with BSDLY inserted if condition is true.
Sourcepub const fn without_bsdly(self) -> Self
pub const fn without_bsdly(self) -> Self
Returns self with BSDLY removed.
Sourcepub const fn set_bsdly_if(&mut self, condition: bool)
pub const fn set_bsdly_if(&mut self, condition: bool)
Sets BSDLY if condition is true.
Sourcepub const fn unset_bsdly(&mut self)
pub const fn unset_bsdly(&mut self)
Unsets BSDLY.
Sourcepub const fn contains_bs1(self) -> bool
pub const fn contains_bs1(self) -> bool
Returns true if all bits in BS1 are present.
Sourcepub const fn intersects_bs1(self) -> bool
pub const fn intersects_bs1(self) -> bool
Returns true if the set shares any bit with BS1.
Sourcepub const fn with_bs1_if(self, condition: bool) -> Self
pub const fn with_bs1_if(self, condition: bool) -> Self
Returns self with BS1 inserted if condition is true.
Sourcepub const fn without_bs1(self) -> Self
pub const fn without_bs1(self) -> Self
Returns self with BS1 removed.
Sourcepub const fn set_bs1_if(&mut self, condition: bool)
pub const fn set_bs1_if(&mut self, condition: bool)
Sets BS1 if condition is true.
Sourcepub const fn contains_vtdly(self) -> bool
pub const fn contains_vtdly(self) -> bool
Returns true if all bits in VTDLY are present.
Sourcepub const fn intersects_vtdly(self) -> bool
pub const fn intersects_vtdly(self) -> bool
Returns true if the set shares any bit with VTDLY.
Sourcepub const fn with_vtdly(self) -> Self
pub const fn with_vtdly(self) -> Self
Returns self with VTDLY inserted.
Sourcepub const fn with_vtdly_if(self, condition: bool) -> Self
pub const fn with_vtdly_if(self, condition: bool) -> Self
Returns self with VTDLY inserted if condition is true.
Sourcepub const fn without_vtdly(self) -> Self
pub const fn without_vtdly(self) -> Self
Returns self with VTDLY removed.
Sourcepub const fn set_vtdly_if(&mut self, condition: bool)
pub const fn set_vtdly_if(&mut self, condition: bool)
Sets VTDLY if condition is true.
Sourcepub const fn unset_vtdly(&mut self)
pub const fn unset_vtdly(&mut self)
Unsets VTDLY.
Sourcepub const fn contains_vt1(self) -> bool
pub const fn contains_vt1(self) -> bool
Returns true if all bits in VT1 are present.
Sourcepub const fn intersects_vt1(self) -> bool
pub const fn intersects_vt1(self) -> bool
Returns true if the set shares any bit with VT1.
Sourcepub const fn with_vt1_if(self, condition: bool) -> Self
pub const fn with_vt1_if(self, condition: bool) -> Self
Returns self with VT1 inserted if condition is true.
Sourcepub const fn without_vt1(self) -> Self
pub const fn without_vt1(self) -> Self
Returns self with VT1 removed.
Sourcepub const fn set_vt1_if(&mut self, condition: bool)
pub const fn set_vt1_if(&mut self, condition: bool)
Sets VT1 if condition is true.
Sourcepub const fn contains_ffdly(self) -> bool
pub const fn contains_ffdly(self) -> bool
Returns true if all bits in FFDLY are present.
Sourcepub const fn intersects_ffdly(self) -> bool
pub const fn intersects_ffdly(self) -> bool
Returns true if the set shares any bit with FFDLY.
Sourcepub const fn with_ffdly(self) -> Self
pub const fn with_ffdly(self) -> Self
Returns self with FFDLY inserted.
Sourcepub const fn with_ffdly_if(self, condition: bool) -> Self
pub const fn with_ffdly_if(self, condition: bool) -> Self
Returns self with FFDLY inserted if condition is true.
Sourcepub const fn without_ffdly(self) -> Self
pub const fn without_ffdly(self) -> Self
Returns self with FFDLY removed.
Sourcepub const fn set_ffdly_if(&mut self, condition: bool)
pub const fn set_ffdly_if(&mut self, condition: bool)
Sets FFDLY if condition is true.
Sourcepub const fn unset_ffdly(&mut self)
pub const fn unset_ffdly(&mut self)
Unsets FFDLY.
Sourcepub const fn contains_ff1(self) -> bool
pub const fn contains_ff1(self) -> bool
Returns true if all bits in FF1 are present.
Sourcepub const fn intersects_ff1(self) -> bool
pub const fn intersects_ff1(self) -> bool
Returns true if the set shares any bit with FF1.
Sourcepub const fn with_ff1_if(self, condition: bool) -> Self
pub const fn with_ff1_if(self, condition: bool) -> Self
Returns self with FF1 inserted if condition is true.
Sourcepub const fn without_ff1(self) -> Self
pub const fn without_ff1(self) -> Self
Returns self with FF1 removed.
Sourcepub const fn set_ff1_if(&mut self, condition: bool)
pub const fn set_ff1_if(&mut self, condition: bool)
Sets FF1 if condition is true.
Sourcepub const fn contains_xtabs(self) -> bool
pub const fn contains_xtabs(self) -> bool
Returns true if the set contains all bits in XTABS.
Sourcepub const fn intersects_xtabs(self) -> bool
pub const fn intersects_xtabs(self) -> bool
Returns true if the set shares any bit with XTABS.
Sourcepub const fn with_xtabs(self) -> Self
pub const fn with_xtabs(self) -> Self
Returns self with XTABS inserted.
Sourcepub const fn with_xtabs_if(self, condition: bool) -> Self
pub const fn with_xtabs_if(self, condition: bool) -> Self
Returns self with XTABS inserted if condition is true.
Sourcepub const fn without_xtabs(self) -> Self
pub const fn without_xtabs(self) -> Self
Returns self with XTABS removed.
Sourcepub const fn set_xtabs_if(&mut self, condition: bool)
pub const fn set_xtabs_if(&mut self, condition: bool)
Sets XTABS if condition is true.
Sourcepub const fn unset_xtabs(&mut self)
pub const fn unset_xtabs(&mut self)
Unsets XTABS.
Sourceยงimpl LinuxTermiosOutputFlags
Common set methods
impl LinuxTermiosOutputFlags
Common set methods
Sourceยงimpl LinuxTermiosOutputFlags
Set operations
impl LinuxTermiosOutputFlags
Set operations
Sourcepub const fn intersects(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
Returns true if self and other share any bit.
Sourcepub const fn is_subset(self, other: Self) -> bool
pub const fn is_subset(self, other: Self) -> bool
Returns true if all bits in self are also set in other.
Sourcepub const fn is_superset(self, other: Self) -> bool
pub const fn is_superset(self, other: Self) -> bool
Returns true if all bits in other are also set in self.
Sourcepub const fn intersection(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
Returns the intersection of self and other.
Sourcepub const fn difference(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
Returns the difference of self and other.
Sourcepub const fn symmetric_difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
Returns the symmetric difference of self and other.
Sourceยงimpl LinuxTermiosOutputFlags
Mutating set operations
impl LinuxTermiosOutputFlags
Mutating set operations
Trait Implementationsยง
Sourceยงimpl Binary for LinuxTermiosOutputFlags
Formats the set as a binary mask over its declared bit domain.
impl Binary for LinuxTermiosOutputFlags
Formats the set as a binary mask over its declared bit domain.
Sourceยงimpl BitAnd for LinuxTermiosOutputFlags
impl BitAnd for LinuxTermiosOutputFlags
Sourceยงimpl BitAndAssign for LinuxTermiosOutputFlags
impl BitAndAssign for LinuxTermiosOutputFlags
Sourceยงfn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read moreSourceยงimpl BitOr for LinuxTermiosOutputFlags
impl BitOr for LinuxTermiosOutputFlags
Sourceยงimpl BitOrAssign for LinuxTermiosOutputFlags
impl BitOrAssign for LinuxTermiosOutputFlags
Sourceยงfn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSourceยงimpl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxTermiosOutputFlags
impl BitSized<{ $Set::_SET_BIT_SIZE }> for LinuxTermiosOutputFlags
Sourceยงconst BIT_SIZE: usize = _
const BIT_SIZE: usize = _
Sourceยงconst MIN_BYTE_SIZE: usize = _
const MIN_BYTE_SIZE: usize = _
Sourceยงfn bit_size(&self) -> usize
fn bit_size(&self) -> usize
Sourceยงfn min_byte_size(&self) -> usize
fn min_byte_size(&self) -> usize
Sourceยงimpl BitXor for LinuxTermiosOutputFlags
impl BitXor for LinuxTermiosOutputFlags
Sourceยงimpl BitXorAssign for LinuxTermiosOutputFlags
impl BitXorAssign for LinuxTermiosOutputFlags
Sourceยงfn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^= operation. Read moreSourceยงimpl Clone for LinuxTermiosOutputFlags
impl Clone for LinuxTermiosOutputFlags
Sourceยงfn clone(&self) -> LinuxTermiosOutputFlags
fn clone(&self) -> LinuxTermiosOutputFlags
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl ConstInit for LinuxTermiosOutputFlags
impl ConstInit for LinuxTermiosOutputFlags
impl Copy for LinuxTermiosOutputFlags
Sourceยงimpl Debug for LinuxTermiosOutputFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Debug for LinuxTermiosOutputFlags
Formats the set as a prefixed binary mask over its declared bit domain.
Sourceยงimpl DebugExt for LinuxTermiosOutputFlagswhere
LinuxTermiosOutputFlags: Debug,
impl DebugExt for LinuxTermiosOutputFlagswhere
LinuxTermiosOutputFlags: Debug,
Sourceยงimpl Default for LinuxTermiosOutputFlags
impl Default for LinuxTermiosOutputFlags
Sourceยงimpl Display for LinuxTermiosOutputFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Display for LinuxTermiosOutputFlags
Formats the set as a prefixed binary mask over its declared bit domain.
impl Eq for LinuxTermiosOutputFlags
Sourceยงimpl Hash for LinuxTermiosOutputFlags
impl Hash for LinuxTermiosOutputFlags
Sourceยงimpl LowerHex for LinuxTermiosOutputFlags
Formats the set as a hexadecimal mask over its declared bit domain.
impl LowerHex for LinuxTermiosOutputFlags
Formats the set as a hexadecimal mask over its declared bit domain.
Sourceยงimpl Not for LinuxTermiosOutputFlags
impl Not for LinuxTermiosOutputFlags
Sourceยงimpl Octal for LinuxTermiosOutputFlags
Formats the set as an octal mask over its declared bit domain.
impl Octal for LinuxTermiosOutputFlags
Formats the set as an octal mask over its declared bit domain.
Sourceยงimpl Ord for LinuxTermiosOutputFlags
impl Ord for LinuxTermiosOutputFlags
1.21.0 (const: unstable) ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงimpl PartialEq for LinuxTermiosOutputFlags
impl PartialEq for LinuxTermiosOutputFlags
Sourceยงimpl PartialOrd for LinuxTermiosOutputFlags
impl PartialOrd for LinuxTermiosOutputFlags
Sourceยงimpl Sub for LinuxTermiosOutputFlags
impl Sub for LinuxTermiosOutputFlags
Sourceยงimpl SubAssign for LinuxTermiosOutputFlags
impl SubAssign for LinuxTermiosOutputFlags
Sourceยงfn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementationsยง
impl Freeze for LinuxTermiosOutputFlags
impl RefUnwindSafe for LinuxTermiosOutputFlags
impl Send for LinuxTermiosOutputFlags
impl Sync for LinuxTermiosOutputFlags
impl Unpin for LinuxTermiosOutputFlags
impl UnsafeUnpin for LinuxTermiosOutputFlags
impl UnwindSafe for LinuxTermiosOutputFlags
Blanket Implementationsยง
Sourceยงimpl<T> AnyExt for T
impl<T> AnyExt for T
Sourceยงfn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
fn type_hash_with<H: Hasher>(&self, hasher: H) -> u64
TypeId of Self using a custom hasher.Sourceยงfn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
fn as_any_mut(&mut self) -> &mut dyn Anywhere
Self: Sized,
Sourceยงfn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
fn as_any_box(self: Box<Self>) -> Box<dyn Any>where
Self: Sized,
alloc only.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
Sourceยงimpl<T> ByteSized for T
impl<T> ByteSized for T
Sourceยงconst BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
Sourceยงfn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Sourceยงfn ptr_size_ratio(&self) -> [usize; 2]
fn ptr_size_ratio(&self) -> [usize; 2]
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<T> MemExt for Twhere
T: ?Sized,
impl<T> MemExt for Twhere
T: ?Sized,
Sourceยงconst NEEDS_DROP: bool = _
const NEEDS_DROP: bool = _
Sourceยงfn mem_align_of<T>() -> usize
fn mem_align_of<T>() -> usize
Sourceยงfn mem_align_of_val(&self) -> usize
fn mem_align_of_val(&self) -> usize
Sourceยงfn mem_size_of<T>() -> usize
fn mem_size_of<T>() -> usize
Sourceยงfn mem_size_of_val(&self) -> usize
fn mem_size_of_val(&self) -> usize
Sourceยงfn mem_needs_drop(&self) -> bool
fn mem_needs_drop(&self) -> bool
true if dropping values of this type matters. Read moreSourceยงfn mem_forget(self)where
Self: Sized,
fn mem_forget(self)where
Self: Sized,
self without running its destructor. Read moreSourceยงfn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
fn mem_replace(&mut self, other: Self) -> Selfwhere
Self: Sized,
Sourceยงunsafe fn mem_zeroed<T>() -> T
unsafe fn mem_zeroed<T>() -> T
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงunsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe fn mem_transmute_copy<Src, Dst>(src: &Src) -> Dst
unsafe_layout only.T represented by the all-zero byte-pattern. Read moreSourceยงfn mem_as_bytes(&self) -> &[u8] โ
fn mem_as_bytes(&self) -> &[u8] โ
unsafe_slice only.