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