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