Struct x11rb_protocol::protocol::xv::Type
source · pub struct Type(/* private fields */);
Implementations§
source§impl Type
impl Type
pub const INPUT_MASK: Self = _
pub const OUTPUT_MASK: Self = _
pub const VIDEO_MASK: Self = _
pub const STILL_MASK: Self = _
pub const IMAGE_MASK: Self = _
source§impl Type
impl Type
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 BitAndAssign<Type> for u8
impl BitAndAssign<Type> for u8
source§fn bitand_assign(&mut self, other: Type)
fn bitand_assign(&mut self, other: Type)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for Type
impl BitAndAssign<u8> for Type
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for Type
impl BitAndAssign for Type
source§fn bitand_assign(&mut self, other: Type)
fn bitand_assign(&mut self, other: Type)
Performs the
&=
operation. Read moresource§impl BitOrAssign<Type> for u8
impl BitOrAssign<Type> for u8
source§fn bitor_assign(&mut self, other: Type)
fn bitor_assign(&mut self, other: Type)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for Type
impl BitOrAssign<u8> for Type
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for Type
impl BitOrAssign for Type
source§fn bitor_assign(&mut self, other: Type)
fn bitor_assign(&mut self, other: Type)
Performs the
|=
operation. Read moresource§impl<'de> Deserialize<'de> for Type
impl<'de> Deserialize<'de> for Type
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 Ord for Type
impl Ord for Type
source§impl PartialEq for Type
impl PartialEq for Type
source§impl PartialOrd for Type
impl PartialOrd for Type
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 Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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