Struct x11rb_protocol::protocol::xkb::SwitchScreenFlag
source · pub struct SwitchScreenFlag(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl SwitchScreenFlag
impl SwitchScreenFlag
pub const APPLICATION: Self = _
pub const ABSOLUTE: Self = _
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 u8
impl BitAnd<SwitchScreenFlag> for u8
source§type Output = SwitchScreenFlag
type Output = SwitchScreenFlag
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for SwitchScreenFlag
impl BitAnd<u8> for SwitchScreenFlag
source§impl BitAnd for SwitchScreenFlag
impl BitAnd for SwitchScreenFlag
source§impl BitAndAssign<SwitchScreenFlag> for u8
impl BitAndAssign<SwitchScreenFlag> for u8
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 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<SwitchScreenFlag> for u8
impl BitOr<SwitchScreenFlag> for u8
source§type Output = SwitchScreenFlag
type Output = SwitchScreenFlag
The resulting type after applying the
|
operator.source§impl BitOr<u8> for SwitchScreenFlag
impl BitOr<u8> for SwitchScreenFlag
source§impl BitOr for SwitchScreenFlag
impl BitOr for SwitchScreenFlag
source§impl BitOrAssign<SwitchScreenFlag> for u8
impl BitOrAssign<SwitchScreenFlag> for u8
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 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<SwitchScreenFlag> for Option<u16>
impl From<SwitchScreenFlag> for Option<u16>
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<SwitchScreenFlag> for Option<u32>
impl From<SwitchScreenFlag> for Option<u32>
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<SwitchScreenFlag> for Option<u8>
impl From<SwitchScreenFlag> for Option<u8>
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<SwitchScreenFlag> for u16
impl From<SwitchScreenFlag> for u16
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<SwitchScreenFlag> for u32
impl From<SwitchScreenFlag> for u32
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<SwitchScreenFlag> for u8
impl From<SwitchScreenFlag> for u8
source§fn from(input: SwitchScreenFlag) -> Self
fn from(input: SwitchScreenFlag) -> Self
Converts to this type from the input type.
source§impl From<u8> for SwitchScreenFlag
impl From<u8> for SwitchScreenFlag
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§impl PartialOrd for SwitchScreenFlag
impl PartialOrd for SwitchScreenFlag
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)