Struct x11rb_protocol::protocol::res::ClientIdMask
source · pub struct ClientIdMask(/* private fields */);
Implementations§
source§impl ClientIdMask
impl ClientIdMask
pub const CLIENT_XID: Self = _
pub const LOCAL_CLIENT_PID: Self = _
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.
Trait Implementations§
source§impl BitAnd<ClientIdMask> for u32
impl BitAnd<ClientIdMask> for u32
§type Output = ClientIdMask
type Output = ClientIdMask
The resulting type after applying the
&
operator.source§impl BitAnd<u32> for ClientIdMask
impl BitAnd<u32> for ClientIdMask
source§impl BitAnd for ClientIdMask
impl BitAnd for ClientIdMask
source§impl BitAndAssign<ClientIdMask> for u32
impl BitAndAssign<ClientIdMask> for u32
source§fn bitand_assign(&mut self, other: ClientIdMask)
fn bitand_assign(&mut self, other: ClientIdMask)
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<ClientIdMask> for u32
impl BitOr<ClientIdMask> for u32
§type Output = ClientIdMask
type Output = ClientIdMask
The resulting type after applying the
|
operator.source§impl BitOr<u32> for ClientIdMask
impl BitOr<u32> for ClientIdMask
source§impl BitOr for ClientIdMask
impl BitOr for ClientIdMask
source§impl BitOrAssign<ClientIdMask> for u32
impl BitOrAssign<ClientIdMask> for u32
source§fn bitor_assign(&mut self, other: ClientIdMask)
fn bitor_assign(&mut self, other: ClientIdMask)
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<'de> Deserialize<'de> for ClientIdMask
impl<'de> Deserialize<'de> for ClientIdMask
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<ClientIdMask> for Option<u32>
impl From<ClientIdMask> for Option<u32>
source§fn from(input: ClientIdMask) -> Self
fn from(input: ClientIdMask) -> Self
Converts to this type from the input type.
source§impl From<ClientIdMask> for u32
impl From<ClientIdMask> for u32
source§fn from(input: ClientIdMask) -> Self
fn from(input: ClientIdMask) -> Self
Converts to this type from the input type.
source§impl From<u16> for ClientIdMask
impl From<u16> for ClientIdMask
source§impl From<u32> for ClientIdMask
impl From<u32> for ClientIdMask
source§impl From<u8> for ClientIdMask
impl From<u8> for ClientIdMask
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 moresource§impl Serialize for ClientIdMask
impl Serialize for ClientIdMask
impl 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