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