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