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