Struct VMod
pub struct VMod(/* private fields */);
Implementations§
§impl VMod
impl VMod
pub const M15: VMod = _
pub const M14: VMod = _
pub const M13: VMod = _
pub const M12: VMod = _
pub const M11: VMod = _
pub const M10: VMod = _
pub const M9: VMod = _
pub const M8: VMod = _
pub const M7: VMod = _
pub const M6: VMod = _
pub const M5: VMod = _
pub const M4: VMod = _
pub const M3: VMod = _
pub const M2: VMod = _
pub const M1: VMod = _
pub const M0: VMod = _
§impl VMod
impl VMod
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.
Trait Implementations§
§impl BitAndAssign<u16> for VMod
impl BitAndAssign<u16> for VMod
§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read more§impl BitAndAssign for VMod
impl BitAndAssign for VMod
§fn bitand_assign(&mut self, other: VMod)
fn bitand_assign(&mut self, other: VMod)
Performs the
&=
operation. Read more§impl BitOrAssign<u16> for VMod
impl BitOrAssign<u16> for VMod
§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read more§impl BitOrAssign for VMod
impl BitOrAssign for VMod
§fn bitor_assign(&mut self, other: VMod)
fn bitor_assign(&mut self, other: VMod)
Performs the
|=
operation. Read more§impl Ord for VMod
impl Ord for VMod
§impl PartialOrd for VMod
impl PartialOrd for VMod
impl Copy for VMod
impl Eq for VMod
impl StructuralPartialEq for VMod
Auto Trait Implementations§
impl Freeze for VMod
impl RefUnwindSafe for VMod
impl Send for VMod
impl Sync for VMod
impl Unpin for VMod
impl UnwindSafe for VMod
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
)