Struct x11rb_protocol::protocol::xfixes::BarrierDirections
source · pub struct BarrierDirections(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl BarrierDirections
impl BarrierDirections
pub const POSITIVE_X: Self = _
pub const POSITIVE_Y: Self = _
pub const NEGATIVE_X: Self = _
pub const NEGATIVE_Y: Self = _
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.
Trait Implementations§
source§impl BitAnd<BarrierDirections> for u32
impl BitAnd<BarrierDirections> for u32
source§type Output = BarrierDirections
type Output = BarrierDirections
The resulting type after applying the
&
operator.source§impl BitAnd<u32> for BarrierDirections
impl BitAnd<u32> for BarrierDirections
source§impl BitAnd for BarrierDirections
impl BitAnd for BarrierDirections
source§impl BitAndAssign<BarrierDirections> for u32
impl BitAndAssign<BarrierDirections> for u32
source§fn bitand_assign(&mut self, other: BarrierDirections)
fn bitand_assign(&mut self, other: BarrierDirections)
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<BarrierDirections> for u32
impl BitOr<BarrierDirections> for u32
source§type Output = BarrierDirections
type Output = BarrierDirections
The resulting type after applying the
|
operator.source§impl BitOr<u32> for BarrierDirections
impl BitOr<u32> for BarrierDirections
source§impl BitOr for BarrierDirections
impl BitOr for BarrierDirections
source§impl BitOrAssign<BarrierDirections> for u32
impl BitOrAssign<BarrierDirections> for u32
source§fn bitor_assign(&mut self, other: BarrierDirections)
fn bitor_assign(&mut self, other: BarrierDirections)
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<BarrierDirections> for Option<u32>
impl From<BarrierDirections> for Option<u32>
source§fn from(input: BarrierDirections) -> Self
fn from(input: BarrierDirections) -> Self
Converts to this type from the input type.
source§impl From<BarrierDirections> for u32
impl From<BarrierDirections> for u32
source§fn from(input: BarrierDirections) -> Self
fn from(input: BarrierDirections) -> Self
Converts to this type from the input type.
source§impl From<u16> for BarrierDirections
impl From<u16> for BarrierDirections
source§impl From<u32> for BarrierDirections
impl From<u32> for BarrierDirections
source§impl From<u8> for BarrierDirections
impl From<u8> for BarrierDirections
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§impl PartialOrd for BarrierDirections
impl PartialOrd for BarrierDirections
impl 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)