Skip to main content

LinuxTermiosLocalFlags

Struct LinuxTermiosLocalFlags 

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

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


๐Ÿ“ sys/os/linux/io/term

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


Implementationsยง

Sourceยง

impl LinuxTermiosLocalFlags

Source

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

Returns flags from the raw Linux c_lflag word.

Source

pub const fn as_c_uint(self) -> c_uint

Returns flags as a raw Linux c_lflag word.

Sourceยง

impl LinuxTermiosLocalFlags

Named constants

Source

pub const ISIG: Self

1 Enable signals.

Source

pub const ICANON: Self

1 Enable canonical mode.

Source

pub const XCASE: Self

1 Uppercase-only terminal compatibility mode.

Source

pub const ECHO: Self

1 Echo input characters.

Source

pub const ECHOE: Self

1 Echo erase processing.

Source

pub const ECHOK: Self

1 Echo kill processing.

Source

pub const ECHONL: Self

1 Echo newline.

Source

pub const NOFLSH: Self

1 Disable flushing when generating signals.

Source

pub const TOSTOP: Self

1 Send SIGTTOU for background output.

Source

pub const ECHOCTL: Self

1 Echo control characters as ^X.

Source

pub const ECHOPRT: Self

1 Visual erase mode.

Source

pub const ECHOKE: Self

1 Echo line kill by erasing each character.

Source

pub const FLUSHO: Self

1 Output is being flushed.

Source

pub const PENDING: Self

1 Pending input reprint.

Source

pub const IEXTEN: Self

1 Enable implementation-defined input processing.

Source

pub const EXTPROC: Self

1 External processing.

Sourceยง

impl LinuxTermiosLocalFlags

Convenience methods derived from each named constant.

Source

pub const fn has_isig(self) -> bool

Returns true if ISIG is present.

Source

pub const fn contains_isig(self) -> bool

Returns true if all bits in ISIG are present.

Source

pub const fn intersects_isig(self) -> bool

Returns true if the set shares any bit with ISIG.

Source

pub const fn with_isig(self) -> Self

Returns self with ISIG inserted.

Source

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

Returns self with ISIG inserted if condition is true.

Source

pub const fn without_isig(self) -> Self

Returns self with ISIG removed.

Source

pub const fn set_isig(&mut self)

Sets ISIG.

Source

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

Sets ISIG if condition is true.

Source

pub const fn unset_isig(&mut self)

Unsets ISIG.

Source

pub const fn has_icanon(self) -> bool

Returns true if ICANON is present.

Source

pub const fn contains_icanon(self) -> bool

Returns true if all bits in ICANON are present.

Source

pub const fn intersects_icanon(self) -> bool

Returns true if the set shares any bit with ICANON.

Source

pub const fn with_icanon(self) -> Self

Returns self with ICANON inserted.

Source

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

Returns self with ICANON inserted if condition is true.

Source

pub const fn without_icanon(self) -> Self

Returns self with ICANON removed.

Source

pub const fn set_icanon(&mut self)

Sets ICANON.

Source

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

Sets ICANON if condition is true.

Source

pub const fn unset_icanon(&mut self)

Unsets ICANON.

Source

pub const fn has_xcase(self) -> bool

Returns true if XCASE is present.

Source

pub const fn contains_xcase(self) -> bool

Returns true if all bits in XCASE are present.

Source

pub const fn intersects_xcase(self) -> bool

Returns true if the set shares any bit with XCASE.

Source

pub const fn with_xcase(self) -> Self

Returns self with XCASE inserted.

Source

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

Returns self with XCASE inserted if condition is true.

Source

pub const fn without_xcase(self) -> Self

Returns self with XCASE removed.

Source

pub const fn set_xcase(&mut self)

Sets XCASE.

Source

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

Sets XCASE if condition is true.

Source

pub const fn unset_xcase(&mut self)

Unsets XCASE.

Source

pub const fn has_echo(self) -> bool

Returns true if ECHO is present.

Source

pub const fn contains_echo(self) -> bool

Returns true if all bits in ECHO are present.

Source

pub const fn intersects_echo(self) -> bool

Returns true if the set shares any bit with ECHO.

Source

pub const fn with_echo(self) -> Self

Returns self with ECHO inserted.

Source

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

Returns self with ECHO inserted if condition is true.

Source

pub const fn without_echo(self) -> Self

Returns self with ECHO removed.

Source

pub const fn set_echo(&mut self)

Sets ECHO.

Source

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

Sets ECHO if condition is true.

Source

pub const fn unset_echo(&mut self)

Unsets ECHO.

Source

pub const fn has_echoe(self) -> bool

Returns true if ECHOE is present.

Source

pub const fn contains_echoe(self) -> bool

Returns true if all bits in ECHOE are present.

Source

pub const fn intersects_echoe(self) -> bool

Returns true if the set shares any bit with ECHOE.

Source

pub const fn with_echoe(self) -> Self

Returns self with ECHOE inserted.

Source

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

Returns self with ECHOE inserted if condition is true.

Source

pub const fn without_echoe(self) -> Self

Returns self with ECHOE removed.

Source

pub const fn set_echoe(&mut self)

Sets ECHOE.

Source

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

Sets ECHOE if condition is true.

Source

pub const fn unset_echoe(&mut self)

Unsets ECHOE.

Source

pub const fn has_echok(self) -> bool

Returns true if ECHOK is present.

Source

pub const fn contains_echok(self) -> bool

Returns true if all bits in ECHOK are present.

Source

pub const fn intersects_echok(self) -> bool

Returns true if the set shares any bit with ECHOK.

Source

pub const fn with_echok(self) -> Self

Returns self with ECHOK inserted.

Source

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

Returns self with ECHOK inserted if condition is true.

Source

pub const fn without_echok(self) -> Self

Returns self with ECHOK removed.

Source

pub const fn set_echok(&mut self)

Sets ECHOK.

Source

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

Sets ECHOK if condition is true.

Source

pub const fn unset_echok(&mut self)

Unsets ECHOK.

Source

pub const fn has_echonl(self) -> bool

Returns true if ECHONL is present.

Source

pub const fn contains_echonl(self) -> bool

Returns true if all bits in ECHONL are present.

Source

pub const fn intersects_echonl(self) -> bool

Returns true if the set shares any bit with ECHONL.

Source

pub const fn with_echonl(self) -> Self

Returns self with ECHONL inserted.

Source

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

Returns self with ECHONL inserted if condition is true.

Source

pub const fn without_echonl(self) -> Self

Returns self with ECHONL removed.

Source

pub const fn set_echonl(&mut self)

Sets ECHONL.

Source

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

Sets ECHONL if condition is true.

Source

pub const fn unset_echonl(&mut self)

Unsets ECHONL.

Source

pub const fn has_noflsh(self) -> bool

Returns true if NOFLSH is present.

Source

pub const fn contains_noflsh(self) -> bool

Returns true if all bits in NOFLSH are present.

Source

pub const fn intersects_noflsh(self) -> bool

Returns true if the set shares any bit with NOFLSH.

Source

pub const fn with_noflsh(self) -> Self

Returns self with NOFLSH inserted.

Source

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

Returns self with NOFLSH inserted if condition is true.

Source

pub const fn without_noflsh(self) -> Self

Returns self with NOFLSH removed.

Source

pub const fn set_noflsh(&mut self)

Sets NOFLSH.

Source

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

Sets NOFLSH if condition is true.

Source

pub const fn unset_noflsh(&mut self)

Unsets NOFLSH.

Source

pub const fn has_tostop(self) -> bool

Returns true if TOSTOP is present.

Source

pub const fn contains_tostop(self) -> bool

Returns true if all bits in TOSTOP are present.

Source

pub const fn intersects_tostop(self) -> bool

Returns true if the set shares any bit with TOSTOP.

Source

pub const fn with_tostop(self) -> Self

Returns self with TOSTOP inserted.

Source

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

Returns self with TOSTOP inserted if condition is true.

Source

pub const fn without_tostop(self) -> Self

Returns self with TOSTOP removed.

Source

pub const fn set_tostop(&mut self)

Sets TOSTOP.

Source

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

Sets TOSTOP if condition is true.

Source

pub const fn unset_tostop(&mut self)

Unsets TOSTOP.

Source

pub const fn has_echoctl(self) -> bool

Returns true if ECHOCTL is present.

Source

pub const fn contains_echoctl(self) -> bool

Returns true if all bits in ECHOCTL are present.

Source

pub const fn intersects_echoctl(self) -> bool

Returns true if the set shares any bit with ECHOCTL.

Source

pub const fn with_echoctl(self) -> Self

Returns self with ECHOCTL inserted.

Source

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

Returns self with ECHOCTL inserted if condition is true.

Source

pub const fn without_echoctl(self) -> Self

Returns self with ECHOCTL removed.

Source

pub const fn set_echoctl(&mut self)

Sets ECHOCTL.

Source

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

Sets ECHOCTL if condition is true.

Source

pub const fn unset_echoctl(&mut self)

Unsets ECHOCTL.

Source

pub const fn has_echoprt(self) -> bool

Returns true if ECHOPRT is present.

Source

pub const fn contains_echoprt(self) -> bool

Returns true if all bits in ECHOPRT are present.

Source

pub const fn intersects_echoprt(self) -> bool

Returns true if the set shares any bit with ECHOPRT.

Source

pub const fn with_echoprt(self) -> Self

Returns self with ECHOPRT inserted.

Source

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

Returns self with ECHOPRT inserted if condition is true.

Source

pub const fn without_echoprt(self) -> Self

Returns self with ECHOPRT removed.

Source

pub const fn set_echoprt(&mut self)

Sets ECHOPRT.

Source

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

Sets ECHOPRT if condition is true.

Source

pub const fn unset_echoprt(&mut self)

Unsets ECHOPRT.

Source

pub const fn has_echoke(self) -> bool

Returns true if ECHOKE is present.

Source

pub const fn contains_echoke(self) -> bool

Returns true if all bits in ECHOKE are present.

Source

pub const fn intersects_echoke(self) -> bool

Returns true if the set shares any bit with ECHOKE.

Source

pub const fn with_echoke(self) -> Self

Returns self with ECHOKE inserted.

Source

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

Returns self with ECHOKE inserted if condition is true.

Source

pub const fn without_echoke(self) -> Self

Returns self with ECHOKE removed.

Source

pub const fn set_echoke(&mut self)

Sets ECHOKE.

Source

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

Sets ECHOKE if condition is true.

Source

pub const fn unset_echoke(&mut self)

Unsets ECHOKE.

Source

pub const fn has_flusho(self) -> bool

Returns true if FLUSHO is present.

Source

pub const fn contains_flusho(self) -> bool

Returns true if all bits in FLUSHO are present.

Source

pub const fn intersects_flusho(self) -> bool

Returns true if the set shares any bit with FLUSHO.

Source

pub const fn with_flusho(self) -> Self

Returns self with FLUSHO inserted.

Source

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

Returns self with FLUSHO inserted if condition is true.

Source

pub const fn without_flusho(self) -> Self

Returns self with FLUSHO removed.

Source

pub const fn set_flusho(&mut self)

Sets FLUSHO.

Source

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

Sets FLUSHO if condition is true.

Source

pub const fn unset_flusho(&mut self)

Unsets FLUSHO.

Source

pub const fn has_pending(self) -> bool

Returns true if PENDING is present.

Source

pub const fn contains_pending(self) -> bool

Returns true if all bits in PENDING are present.

Source

pub const fn intersects_pending(self) -> bool

Returns true if the set shares any bit with PENDING.

Source

pub const fn with_pending(self) -> Self

Returns self with PENDING inserted.

Source

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

Returns self with PENDING inserted if condition is true.

Source

pub const fn without_pending(self) -> Self

Returns self with PENDING removed.

Source

pub const fn set_pending(&mut self)

Sets PENDING.

Source

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

Sets PENDING if condition is true.

Source

pub const fn unset_pending(&mut self)

Unsets PENDING.

Source

pub const fn has_iexten(self) -> bool

Returns true if IEXTEN is present.

Source

pub const fn contains_iexten(self) -> bool

Returns true if all bits in IEXTEN are present.

Source

pub const fn intersects_iexten(self) -> bool

Returns true if the set shares any bit with IEXTEN.

Source

pub const fn with_iexten(self) -> Self

Returns self with IEXTEN inserted.

Source

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

Returns self with IEXTEN inserted if condition is true.

Source

pub const fn without_iexten(self) -> Self

Returns self with IEXTEN removed.

Source

pub const fn set_iexten(&mut self)

Sets IEXTEN.

Source

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

Sets IEXTEN if condition is true.

Source

pub const fn unset_iexten(&mut self)

Unsets IEXTEN.

Source

pub const fn has_extproc(self) -> bool

Returns true if EXTPROC is present.

Source

pub const fn contains_extproc(self) -> bool

Returns true if all bits in EXTPROC are present.

Source

pub const fn intersects_extproc(self) -> bool

Returns true if the set shares any bit with EXTPROC.

Source

pub const fn with_extproc(self) -> Self

Returns self with EXTPROC inserted.

Source

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

Returns self with EXTPROC inserted if condition is true.

Source

pub const fn without_extproc(self) -> Self

Returns self with EXTPROC removed.

Source

pub const fn set_extproc(&mut self)

Sets EXTPROC.

Source

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

Sets EXTPROC if condition is true.

Source

pub const fn unset_extproc(&mut self)

Unsets EXTPROC.

Sourceยง

impl LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

type Output = LinuxTermiosLocalFlags

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

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

Performs the & operation. Read more
Sourceยง

impl BitAndAssign for LinuxTermiosLocalFlags

Sourceยง

fn bitand_assign(&mut self, rhs: Self)

Performs the &= operation. Read more
Sourceยง

impl BitOr for LinuxTermiosLocalFlags

Sourceยง

type Output = LinuxTermiosLocalFlags

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

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

Performs the | operation. Read more
Sourceยง

impl BitOrAssign for LinuxTermiosLocalFlags

Sourceยง

fn bitor_assign(&mut self, rhs: Self)

Performs the |= operation. Read more
Sourceยง

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

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 LinuxTermiosLocalFlags

Sourceยง

type Output = LinuxTermiosLocalFlags

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

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

Performs the ^ operation. Read more
Sourceยง

impl BitXorAssign for LinuxTermiosLocalFlags

Sourceยง

fn bitxor_assign(&mut self, rhs: Self)

Performs the ^= operation. Read more
Sourceยง

impl Clone for LinuxTermiosLocalFlags

Sourceยง

fn clone(&self) -> LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

const INIT: Self

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

impl Copy for LinuxTermiosLocalFlags

Sourceยง

impl Debug for LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

fn default() -> Self

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

impl Display for LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

impl Hash for LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

type Output = LinuxTermiosLocalFlags

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

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
Sourceยง

impl Octal for LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

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 LinuxTermiosLocalFlags

Sourceยง

type Output = LinuxTermiosLocalFlags

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

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

Performs the - operation. Read more
Sourceยง

impl SubAssign for LinuxTermiosLocalFlags

Sourceยง

fn sub_assign(&mut self, rhs: Self)

Performs the -= operation. Read more
Sourceยง

impl UpperHex for LinuxTermiosLocalFlags

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.