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