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