Struct x11rb_async::protocol::xkb::SwitchScreenFlag   
source · pub struct SwitchScreenFlag(_);Implementations§
source§impl SwitchScreenFlag
 
impl SwitchScreenFlag
pub const APPLICATION: SwitchScreenFlag = Self(1 << 0)
pub const ABSOLUTE: SwitchScreenFlag = Self(1 << 2)
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.
Trait Implementations§
source§impl BitAnd<SwitchScreenFlag> for SwitchScreenFlag
 
impl BitAnd<SwitchScreenFlag> for SwitchScreenFlag
§type Output = SwitchScreenFlag
 
type Output = SwitchScreenFlag
The resulting type after applying the 
& operator.source§fn bitand(
    self,
    other: SwitchScreenFlag
) -> <SwitchScreenFlag as BitAnd<SwitchScreenFlag>>::Output
 
fn bitand( self, other: SwitchScreenFlag ) -> <SwitchScreenFlag as BitAnd<SwitchScreenFlag>>::Output
Performs the 
& operation. Read moresource§impl BitAnd<u8> for SwitchScreenFlag
 
impl BitAnd<u8> for SwitchScreenFlag
source§impl BitAndAssign<SwitchScreenFlag> for SwitchScreenFlag
 
impl BitAndAssign<SwitchScreenFlag> for SwitchScreenFlag
source§fn bitand_assign(&mut self, other: SwitchScreenFlag)
 
fn bitand_assign(&mut self, other: SwitchScreenFlag)
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 BitOr<SwitchScreenFlag> for SwitchScreenFlag
 
impl BitOr<SwitchScreenFlag> for SwitchScreenFlag
§type Output = SwitchScreenFlag
 
type Output = SwitchScreenFlag
The resulting type after applying the 
| operator.source§fn bitor(
    self,
    other: SwitchScreenFlag
) -> <SwitchScreenFlag as BitOr<SwitchScreenFlag>>::Output
 
fn bitor( self, other: SwitchScreenFlag ) -> <SwitchScreenFlag as BitOr<SwitchScreenFlag>>::Output
Performs the 
| operation. Read moresource§impl BitOr<u8> for SwitchScreenFlag
 
impl BitOr<u8> for SwitchScreenFlag
source§impl BitOrAssign<SwitchScreenFlag> for SwitchScreenFlag
 
impl BitOrAssign<SwitchScreenFlag> for SwitchScreenFlag
source§fn bitor_assign(&mut self, other: SwitchScreenFlag)
 
fn bitor_assign(&mut self, other: SwitchScreenFlag)
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 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<SwitchScreenFlag> for SwitchScreenFlag
 
impl PartialEq<SwitchScreenFlag> 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<SwitchScreenFlag> for SwitchScreenFlag
 
impl PartialOrd<SwitchScreenFlag> 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 StructuralEq for SwitchScreenFlag
impl StructuralPartialEq for SwitchScreenFlag
Auto Trait Implementations§
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