Struct BarrierFlags
pub struct BarrierFlags(/* private fields */);
Implementations§
§impl BarrierFlags
impl BarrierFlags
pub const POINTER_RELEASED: BarrierFlags = _
pub const DEVICE_IS_GRABBED: BarrierFlags = _
§impl BarrierFlags
impl BarrierFlags
pub 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.
pub 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.
pub fn remove(self, flags: impl Into<u32>) -> BarrierFlags
pub fn remove(self, flags: impl Into<u32>) -> BarrierFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for BarrierFlags
impl BitAnd<u32> for BarrierFlags
§impl BitAnd for BarrierFlags
impl BitAnd for BarrierFlags
§type Output = BarrierFlags
type Output = BarrierFlags
The resulting type after applying the
&
operator.§fn bitand(self, other: BarrierFlags) -> <BarrierFlags as BitAnd>::Output
fn bitand(self, other: BarrierFlags) -> <BarrierFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for BarrierFlags
impl BitAndAssign<u32> for BarrierFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for BarrierFlags
impl BitAndAssign for BarrierFlags
§fn bitand_assign(&mut self, other: BarrierFlags)
fn bitand_assign(&mut self, other: BarrierFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for BarrierFlags
impl BitOr<u32> for BarrierFlags
§impl BitOr for BarrierFlags
impl BitOr for BarrierFlags
§type Output = BarrierFlags
type Output = BarrierFlags
The resulting type after applying the
|
operator.§fn bitor(self, other: BarrierFlags) -> <BarrierFlags as BitOr>::Output
fn bitor(self, other: BarrierFlags) -> <BarrierFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for BarrierFlags
impl BitOrAssign<u32> for BarrierFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for BarrierFlags
impl BitOrAssign for BarrierFlags
§fn bitor_assign(&mut self, other: BarrierFlags)
fn bitor_assign(&mut self, other: BarrierFlags)
Performs the
|=
operation. Read more§impl Clone for BarrierFlags
impl Clone for BarrierFlags
§fn clone(&self) -> BarrierFlags
fn clone(&self) -> BarrierFlags
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 more§impl Debug for BarrierFlags
impl Debug for BarrierFlags
§impl Default for BarrierFlags
impl Default for BarrierFlags
§fn default() -> BarrierFlags
fn default() -> BarrierFlags
Returns the “default value” for a type. Read more
§impl From<u16> for BarrierFlags
impl From<u16> for BarrierFlags
§fn from(value: u16) -> BarrierFlags
fn from(value: u16) -> BarrierFlags
Converts to this type from the input type.
§impl From<u32> for BarrierFlags
impl From<u32> for BarrierFlags
§fn from(value: u32) -> BarrierFlags
fn from(value: u32) -> BarrierFlags
Converts to this type from the input type.
§impl From<u8> for BarrierFlags
impl From<u8> for BarrierFlags
§fn from(value: u8) -> BarrierFlags
fn from(value: u8) -> BarrierFlags
Converts to this type from the input type.
§impl Hash for BarrierFlags
impl Hash for BarrierFlags
§impl Ord for BarrierFlags
impl Ord for BarrierFlags
§impl PartialEq for BarrierFlags
impl PartialEq for BarrierFlags
§impl PartialOrd for BarrierFlags
impl PartialOrd for BarrierFlags
impl Copy for BarrierFlags
impl Eq for BarrierFlags
impl StructuralPartialEq for BarrierFlags
Auto Trait Implementations§
impl Freeze for BarrierFlags
impl RefUnwindSafe for BarrierFlags
impl Send for BarrierFlags
impl Sync for BarrierFlags
impl Unpin for BarrierFlags
impl UnwindSafe for BarrierFlags
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
)