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