Struct BarrierDirections
pub struct BarrierDirections(/* private fields */);
Implementations§
§impl BarrierDirections
impl BarrierDirections
pub const POSITIVE_X: BarrierDirections = _
pub const POSITIVE_Y: BarrierDirections = _
pub const NEGATIVE_X: BarrierDirections = _
pub const NEGATIVE_Y: BarrierDirections = _
§impl BarrierDirections
impl BarrierDirections
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>) -> 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§
§impl BitAnd<u32> for BarrierDirections
impl BitAnd<u32> for BarrierDirections
§impl BitAnd for BarrierDirections
impl BitAnd for BarrierDirections
§type Output = BarrierDirections
type Output = BarrierDirections
The resulting type after applying the
&
operator.§fn bitand(
self,
other: BarrierDirections,
) -> <BarrierDirections as BitAnd>::Output
fn bitand( self, other: BarrierDirections, ) -> <BarrierDirections as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for BarrierDirections
impl BitAndAssign<u32> for BarrierDirections
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for BarrierDirections
impl BitAndAssign for BarrierDirections
§fn bitand_assign(&mut self, other: BarrierDirections)
fn bitand_assign(&mut self, other: BarrierDirections)
Performs the
&=
operation. Read more§impl BitOr<u32> for BarrierDirections
impl BitOr<u32> for BarrierDirections
§impl BitOr for BarrierDirections
impl BitOr for BarrierDirections
§type Output = BarrierDirections
type Output = BarrierDirections
The resulting type after applying the
|
operator.§fn bitor(self, other: BarrierDirections) -> <BarrierDirections as BitOr>::Output
fn bitor(self, other: BarrierDirections) -> <BarrierDirections as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for BarrierDirections
impl BitOrAssign<u32> for BarrierDirections
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for BarrierDirections
impl BitOrAssign for BarrierDirections
§fn bitor_assign(&mut self, other: BarrierDirections)
fn bitor_assign(&mut self, other: BarrierDirections)
Performs the
|=
operation. Read more§impl Clone for BarrierDirections
impl Clone for BarrierDirections
§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 more§impl Debug for BarrierDirections
impl Debug for BarrierDirections
§impl Default for BarrierDirections
impl Default for BarrierDirections
§fn default() -> BarrierDirections
fn default() -> BarrierDirections
Returns the “default value” for a type. Read more
§impl From<u16> for BarrierDirections
impl From<u16> for BarrierDirections
§fn from(value: u16) -> BarrierDirections
fn from(value: u16) -> BarrierDirections
Converts to this type from the input type.
§impl From<u32> for BarrierDirections
impl From<u32> for BarrierDirections
§fn from(value: u32) -> BarrierDirections
fn from(value: u32) -> BarrierDirections
Converts to this type from the input type.
§impl From<u8> for BarrierDirections
impl From<u8> for BarrierDirections
§fn from(value: u8) -> BarrierDirections
fn from(value: u8) -> BarrierDirections
Converts to this type from the input type.
§impl Hash for BarrierDirections
impl Hash for BarrierDirections
§impl Ord for BarrierDirections
impl Ord for BarrierDirections
§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
§impl PartialEq for BarrierDirections
impl PartialEq for BarrierDirections
§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
)