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