Struct x11rb::protocol::randr::ProviderCapability
source · pub struct ProviderCapability(/* private fields */);
Implementations§
source§impl ProviderCapability
impl ProviderCapability
pub const SOURCE_OUTPUT: ProviderCapability = _
pub const SINK_OUTPUT: ProviderCapability = _
pub const SOURCE_OFFLOAD: ProviderCapability = _
pub const SINK_OFFLOAD: ProviderCapability = _
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.
sourcepub fn remove(self, flags: impl Into<u32>) -> ProviderCapability
pub fn remove(self, flags: impl Into<u32>) -> ProviderCapability
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 ProviderCapability
impl BitAnd<u32> for ProviderCapability
source§impl BitAnd for ProviderCapability
impl BitAnd for ProviderCapability
§type Output = ProviderCapability
type Output = ProviderCapability
The resulting type after applying the
&
operator.source§fn bitand(
self,
other: ProviderCapability
) -> <ProviderCapability as BitAnd>::Output
fn bitand( self, other: ProviderCapability ) -> <ProviderCapability as BitAnd>::Output
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<u32> for ProviderCapability
impl BitOr<u32> for ProviderCapability
source§impl BitOr for ProviderCapability
impl BitOr for ProviderCapability
§type Output = ProviderCapability
type Output = ProviderCapability
The resulting type after applying the
|
operator.source§fn bitor(
self,
other: ProviderCapability
) -> <ProviderCapability as BitOr>::Output
fn bitor( self, other: ProviderCapability ) -> <ProviderCapability as BitOr>::Output
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 From<u16> for ProviderCapability
impl From<u16> for ProviderCapability
source§fn from(value: u16) -> ProviderCapability
fn from(value: u16) -> ProviderCapability
Converts to this type from the input type.
source§impl From<u32> for ProviderCapability
impl From<u32> for ProviderCapability
source§fn from(value: u32) -> ProviderCapability
fn from(value: u32) -> ProviderCapability
Converts to this type from the input type.
source§impl From<u8> for ProviderCapability
impl From<u8> for ProviderCapability
source§fn from(value: u8) -> ProviderCapability
fn from(value: u8) -> ProviderCapability
Converts to this type from the input type.
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 moreimpl Copy for ProviderCapability
impl Eq for ProviderCapability
impl StructuralEq for ProviderCapability
impl StructuralPartialEq for ProviderCapability
Auto Trait Implementations§
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