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