Struct SASetPtrDfltFlag
pub struct SASetPtrDfltFlag(/* private fields */);
Implementations§
§impl SASetPtrDfltFlag
impl SASetPtrDfltFlag
pub const DFLT_BTN_ABSOLUTE: SASetPtrDfltFlag = _
pub const AFFECT_DFLT_BUTTON: SASetPtrDfltFlag = _
§impl SASetPtrDfltFlag
impl SASetPtrDfltFlag
pub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> 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<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> 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<u8>) -> SASetPtrDfltFlag
pub fn remove(self, flags: impl Into<u8>) -> SASetPtrDfltFlag
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<u8> for SASetPtrDfltFlag
impl BitAnd<u8> for SASetPtrDfltFlag
§impl BitAnd for SASetPtrDfltFlag
impl BitAnd for SASetPtrDfltFlag
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
&
operator.§fn bitand(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitAnd>::Output
fn bitand(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u8> for SASetPtrDfltFlag
impl BitAndAssign<u8> for SASetPtrDfltFlag
§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read more§impl BitAndAssign for SASetPtrDfltFlag
impl BitAndAssign for SASetPtrDfltFlag
§fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
fn bitand_assign(&mut self, other: SASetPtrDfltFlag)
Performs the
&=
operation. Read more§impl BitOr<u8> for SASetPtrDfltFlag
impl BitOr<u8> for SASetPtrDfltFlag
§impl BitOr for SASetPtrDfltFlag
impl BitOr for SASetPtrDfltFlag
§type Output = SASetPtrDfltFlag
type Output = SASetPtrDfltFlag
The resulting type after applying the
|
operator.§fn bitor(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitOr>::Output
fn bitor(self, other: SASetPtrDfltFlag) -> <SASetPtrDfltFlag as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u8> for SASetPtrDfltFlag
impl BitOrAssign<u8> for SASetPtrDfltFlag
§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read more§impl BitOrAssign for SASetPtrDfltFlag
impl BitOrAssign for SASetPtrDfltFlag
§fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
fn bitor_assign(&mut self, other: SASetPtrDfltFlag)
Performs the
|=
operation. Read more§impl Clone for SASetPtrDfltFlag
impl Clone for SASetPtrDfltFlag
§fn clone(&self) -> SASetPtrDfltFlag
fn clone(&self) -> SASetPtrDfltFlag
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 SASetPtrDfltFlag
impl Debug for SASetPtrDfltFlag
§impl Default for SASetPtrDfltFlag
impl Default for SASetPtrDfltFlag
§fn default() -> SASetPtrDfltFlag
fn default() -> SASetPtrDfltFlag
Returns the “default value” for a type. Read more
§impl From<u8> for SASetPtrDfltFlag
impl From<u8> for SASetPtrDfltFlag
§fn from(value: u8) -> SASetPtrDfltFlag
fn from(value: u8) -> SASetPtrDfltFlag
Converts to this type from the input type.
§impl Hash for SASetPtrDfltFlag
impl Hash for SASetPtrDfltFlag
§impl Ord for SASetPtrDfltFlag
impl Ord for SASetPtrDfltFlag
§fn cmp(&self, other: &SASetPtrDfltFlag) -> Ordering
fn cmp(&self, other: &SASetPtrDfltFlag) -> 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 SASetPtrDfltFlag
impl PartialEq for SASetPtrDfltFlag
§impl PartialOrd for SASetPtrDfltFlag
impl PartialOrd for SASetPtrDfltFlag
impl Copy for SASetPtrDfltFlag
impl Eq for SASetPtrDfltFlag
impl StructuralPartialEq for SASetPtrDfltFlag
Auto Trait Implementations§
impl Freeze for SASetPtrDfltFlag
impl RefUnwindSafe for SASetPtrDfltFlag
impl Send for SASetPtrDfltFlag
impl Sync for SASetPtrDfltFlag
impl Unpin for SASetPtrDfltFlag
impl UnwindSafe for SASetPtrDfltFlag
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
)