Struct x11rb_protocol::protocol::xkb::SetOfGroups
source · pub struct SetOfGroups(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl SetOfGroups
impl SetOfGroups
source§impl SetOfGroups
impl SetOfGroups
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<SetOfGroups> for u8
impl BitAnd<SetOfGroups> for u8
source§type Output = SetOfGroups
type Output = SetOfGroups
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for SetOfGroups
impl BitAnd<u8> for SetOfGroups
source§impl BitAnd for SetOfGroups
impl BitAnd for SetOfGroups
source§impl BitAndAssign<SetOfGroups> for u8
impl BitAndAssign<SetOfGroups> for u8
source§fn bitand_assign(&mut self, other: SetOfGroups)
fn bitand_assign(&mut self, other: SetOfGroups)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for SetOfGroups
impl BitAndAssign<u8> for SetOfGroups
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for SetOfGroups
impl BitAndAssign for SetOfGroups
source§fn bitand_assign(&mut self, other: SetOfGroups)
fn bitand_assign(&mut self, other: SetOfGroups)
Performs the
&=
operation. Read moresource§impl BitOr<SetOfGroups> for u8
impl BitOr<SetOfGroups> for u8
source§type Output = SetOfGroups
type Output = SetOfGroups
The resulting type after applying the
|
operator.source§impl BitOr<u8> for SetOfGroups
impl BitOr<u8> for SetOfGroups
source§impl BitOr for SetOfGroups
impl BitOr for SetOfGroups
source§impl BitOrAssign<SetOfGroups> for u8
impl BitOrAssign<SetOfGroups> for u8
source§fn bitor_assign(&mut self, other: SetOfGroups)
fn bitor_assign(&mut self, other: SetOfGroups)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for SetOfGroups
impl BitOrAssign<u8> for SetOfGroups
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for SetOfGroups
impl BitOrAssign for SetOfGroups
source§fn bitor_assign(&mut self, other: SetOfGroups)
fn bitor_assign(&mut self, other: SetOfGroups)
Performs the
|=
operation. Read moresource§impl Clone for SetOfGroups
impl Clone for SetOfGroups
source§fn clone(&self) -> SetOfGroups
fn clone(&self) -> SetOfGroups
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 SetOfGroups
impl Debug for SetOfGroups
source§impl Default for SetOfGroups
impl Default for SetOfGroups
source§fn default() -> SetOfGroups
fn default() -> SetOfGroups
Returns the “default value” for a type. Read more
source§impl From<SetOfGroups> for Option<u16>
impl From<SetOfGroups> for Option<u16>
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<SetOfGroups> for Option<u32>
impl From<SetOfGroups> for Option<u32>
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<SetOfGroups> for Option<u8>
impl From<SetOfGroups> for Option<u8>
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<SetOfGroups> for u16
impl From<SetOfGroups> for u16
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<SetOfGroups> for u32
impl From<SetOfGroups> for u32
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<SetOfGroups> for u8
impl From<SetOfGroups> for u8
source§fn from(input: SetOfGroups) -> Self
fn from(input: SetOfGroups) -> Self
Converts to this type from the input type.
source§impl From<u8> for SetOfGroups
impl From<u8> for SetOfGroups
source§impl Hash for SetOfGroups
impl Hash for SetOfGroups
source§impl Ord for SetOfGroups
impl Ord for SetOfGroups
source§fn cmp(&self, other: &SetOfGroups) -> Ordering
fn cmp(&self, other: &SetOfGroups) -> 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 SetOfGroups
impl PartialEq for SetOfGroups
source§impl PartialOrd for SetOfGroups
impl PartialOrd for SetOfGroups
impl Copy for SetOfGroups
impl Eq for SetOfGroups
impl StructuralPartialEq for SetOfGroups
Auto Trait Implementations§
impl Freeze for SetOfGroups
impl RefUnwindSafe for SetOfGroups
impl Send for SetOfGroups
impl Sync for SetOfGroups
impl Unpin for SetOfGroups
impl UnwindSafe for SetOfGroups
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
)