Struct x11rb::protocol::xkb::SetMapFlags
source · pub struct SetMapFlags(u16);
Tuple Fields§
§0: u16
Implementations§
source§impl SetMapFlags
impl SetMapFlags
pub const RESIZE_TYPES: SetMapFlags = _
pub const RECOMPUTE_ACTIONS: SetMapFlags = _
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.
sourcepub fn remove(self, flags: impl Into<u16>) -> SetMapFlags
pub fn remove(self, flags: impl Into<u16>) -> SetMapFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u16> for SetMapFlags
impl BitAnd<u16> for SetMapFlags
source§impl BitAnd for SetMapFlags
impl BitAnd for SetMapFlags
source§type Output = SetMapFlags
type Output = SetMapFlags
The resulting type after applying the
&
operator.source§fn bitand(self, other: SetMapFlags) -> <SetMapFlags as BitAnd>::Output
fn bitand(self, other: SetMapFlags) -> <SetMapFlags as BitAnd>::Output
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<u16> for SetMapFlags
impl BitOr<u16> for SetMapFlags
source§impl BitOr for SetMapFlags
impl BitOr for SetMapFlags
source§type Output = SetMapFlags
type Output = SetMapFlags
The resulting type after applying the
|
operator.source§fn bitor(self, other: SetMapFlags) -> <SetMapFlags as BitOr>::Output
fn bitor(self, other: SetMapFlags) -> <SetMapFlags as BitOr>::Output
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<u16> for SetMapFlags
impl From<u16> for SetMapFlags
source§fn from(value: u16) -> SetMapFlags
fn from(value: u16) -> SetMapFlags
Converts to this type from the input type.
source§impl From<u8> for SetMapFlags
impl From<u8> for SetMapFlags
source§fn from(value: u8) -> SetMapFlags
fn from(value: u8) -> SetMapFlags
Converts to this type from the input type.
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§impl PartialOrd for SetMapFlags
impl PartialOrd for SetMapFlags
impl Copy for SetMapFlags
impl Eq for SetMapFlags
impl StructuralPartialEq for SetMapFlags
Auto Trait Implementations§
impl Freeze for SetMapFlags
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
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
)