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