Struct x11rb::protocol::xkb::SwitchScreenFlag
source · pub struct SwitchScreenFlag(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl SwitchScreenFlag
impl SwitchScreenFlag
pub const APPLICATION: SwitchScreenFlag = _
pub const ABSOLUTE: SwitchScreenFlag = _
source§impl SwitchScreenFlag
impl SwitchScreenFlag
sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn intersects(self, flag: impl Into<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn remove(self, flags: impl Into<u8>) -> SwitchScreenFlag
pub fn remove(self, flags: impl Into<u8>) -> SwitchScreenFlag
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u8> for SwitchScreenFlag
impl BitAnd<u8> for SwitchScreenFlag
source§impl BitAnd for SwitchScreenFlag
impl BitAnd for SwitchScreenFlag
§type Output = SwitchScreenFlag
type Output = SwitchScreenFlag
The resulting type after applying the
&
operator.source§fn bitand(self, other: SwitchScreenFlag) -> <SwitchScreenFlag as BitAnd>::Output
fn bitand(self, other: SwitchScreenFlag) -> <SwitchScreenFlag as BitAnd>::Output
Performs the
&
operation. Read moresource§impl BitAndAssign<u8> for SwitchScreenFlag
impl BitAndAssign<u8> for SwitchScreenFlag
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for SwitchScreenFlag
impl BitAndAssign for SwitchScreenFlag
source§fn bitand_assign(&mut self, other: SwitchScreenFlag)
fn bitand_assign(&mut self, other: SwitchScreenFlag)
Performs the
&=
operation. Read moresource§impl BitOr<u8> for SwitchScreenFlag
impl BitOr<u8> for SwitchScreenFlag
source§impl BitOr for SwitchScreenFlag
impl BitOr for SwitchScreenFlag
§type Output = SwitchScreenFlag
type Output = SwitchScreenFlag
The resulting type after applying the
|
operator.source§fn bitor(self, other: SwitchScreenFlag) -> <SwitchScreenFlag as BitOr>::Output
fn bitor(self, other: SwitchScreenFlag) -> <SwitchScreenFlag as BitOr>::Output
Performs the
|
operation. Read moresource§impl BitOrAssign<u8> for SwitchScreenFlag
impl BitOrAssign<u8> for SwitchScreenFlag
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for SwitchScreenFlag
impl BitOrAssign for SwitchScreenFlag
source§fn bitor_assign(&mut self, other: SwitchScreenFlag)
fn bitor_assign(&mut self, other: SwitchScreenFlag)
Performs the
|=
operation. Read moresource§impl Clone for SwitchScreenFlag
impl Clone for SwitchScreenFlag
source§fn clone(&self) -> SwitchScreenFlag
fn clone(&self) -> SwitchScreenFlag
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SwitchScreenFlag
impl Debug for SwitchScreenFlag
source§impl Default for SwitchScreenFlag
impl Default for SwitchScreenFlag
source§fn default() -> SwitchScreenFlag
fn default() -> SwitchScreenFlag
Returns the “default value” for a type. Read more
source§impl From<u8> for SwitchScreenFlag
impl From<u8> for SwitchScreenFlag
source§fn from(value: u8) -> SwitchScreenFlag
fn from(value: u8) -> SwitchScreenFlag
Converts to this type from the input type.
source§impl Hash for SwitchScreenFlag
impl Hash for SwitchScreenFlag
source§impl Ord for SwitchScreenFlag
impl Ord for SwitchScreenFlag
source§fn cmp(&self, other: &SwitchScreenFlag) -> Ordering
fn cmp(&self, other: &SwitchScreenFlag) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SwitchScreenFlag
impl PartialEq for SwitchScreenFlag
source§fn eq(&self, other: &SwitchScreenFlag) -> bool
fn eq(&self, other: &SwitchScreenFlag) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SwitchScreenFlag
impl PartialOrd for SwitchScreenFlag
source§fn partial_cmp(&self, other: &SwitchScreenFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &SwitchScreenFlag) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SwitchScreenFlag
impl Eq for SwitchScreenFlag
impl StructuralPartialEq for SwitchScreenFlag
Auto Trait Implementations§
impl Freeze for SwitchScreenFlag
impl RefUnwindSafe for SwitchScreenFlag
impl Send for SwitchScreenFlag
impl Sync for SwitchScreenFlag
impl Unpin for SwitchScreenFlag
impl UnwindSafe for SwitchScreenFlag
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