pub struct Modifier { /* private fields */ }Implementations§
Source§impl Modifier
impl Modifier
pub const BOLD: Modifier
pub const DIM: Modifier
pub const ITALIC: Modifier
pub const UNDERLINED: Modifier
pub const SLOW_BLINK: Modifier
pub const RAPID_BLINK: Modifier
pub const REVERSED: Modifier
pub const HIDDEN: Modifier
pub const CROSSED_OUT: Modifier
Sourcepub fn from_bits(bits: u16) -> Option<Modifier>
pub fn from_bits(bits: u16) -> Option<Modifier>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u16) -> Modifier
pub const fn from_bits_truncate(bits: u16) -> Modifier
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> Modifier
pub const unsafe fn from_bits_unchecked(bits: u16) -> Modifier
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: Modifier) -> bool
pub const fn intersects(&self, other: Modifier) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for Modifier
impl BitAndAssign for Modifier
Source§fn bitand_assign(&mut self, other: Modifier)
fn bitand_assign(&mut self, other: Modifier)
Disables all flags disabled in the set.
Source§impl BitOrAssign for Modifier
impl BitOrAssign for Modifier
Source§fn bitor_assign(&mut self, other: Modifier)
fn bitor_assign(&mut self, other: Modifier)
Adds the set of flags.
Source§impl BitXorAssign for Modifier
impl BitXorAssign for Modifier
Source§fn bitxor_assign(&mut self, other: Modifier)
fn bitxor_assign(&mut self, other: Modifier)
Toggles the set of flags.
Source§impl Extend<Modifier> for Modifier
impl Extend<Modifier> for Modifier
Source§fn extend<T: IntoIterator<Item = Modifier>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Modifier>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Modifier> for Modifier
impl FromIterator<Modifier> for Modifier
Source§impl Ord for Modifier
impl Ord for Modifier
Source§impl PartialOrd for Modifier
impl PartialOrd for Modifier
Source§impl SubAssign for Modifier
impl SubAssign for Modifier
Source§fn sub_assign(&mut self, other: Modifier)
fn sub_assign(&mut self, other: Modifier)
Disables all flags enabled in the set.
impl Copy for Modifier
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
Blanket Implementations§
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
Mutably borrows from an owned value. Read more