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